public UrlRuleConfiguration GetUrlRuleConfig()
{
string cacheKey = String.Format(UrlRuleConfigCacheKey, _portalId);
var config = CBO.GetCachedObject<UrlRuleConfiguration>(
new CacheItemArgs(cacheKey, DataCache.TabCacheTimeOut, DataCache.TabCachePriority, _portalId),
GetUrlRuleConfigCallBack);
if (config.Rules.Count == 0)
{
#if DEBUG
Logger.Info("Rules.Count = 0 -> ClearCache " + cacheKey);
#endif
DataCache.ClearCache(cacheKey);
}
return config;
}