//---------------------------------------------------------------------- private void initCacheKey(ActionCache actionCache, MvcContext ctx) { if (actionCache == null) { return; } // 只在 GET 下缓存 if (ctx.HttpMethod.Equals("GET") == false) { return; } _cacheKey = actionCache.GetCacheKey(ctx, _actionName); if (strUtil.HasText(_cacheKey)) { _isActionCache = true; } }
//---------------------------------------------------------------------- private void initCacheKey( ActionCache actionCache, MvcContext ctx ) { if (actionCache == null) return; // 只在 GET 下缓存 if (ctx.HttpMethod.Equals( "GET" ) == false) return; _cacheKey = actionCache.GetCacheKey( ctx, _actionName ); if (strUtil.HasText( _cacheKey )) { _isActionCache = true; } }