Пример #1
0
function HyperCacheRulesSave($uri, $ID)
{
    $uri_md5 = md5($uri);
    if (HyperCacheRulesIsStored($uri)) {
        if ($GLOBALS["HyperCacheDebug"]) {
            events("HyperCacheRulesSave: HyperCacheRulesIsStored(..) -> TRUE [" . __LINE__ . "]");
        }
        return true;
    }
    if ($GLOBALS["HyperCacheDebug"]) {
        events("HyperCacheRulesSave: HyperCacheRulesIsStored(..) -> FALSE [" . __LINE__ . "]");
    }
    if (HyperCacheRules_get($uri, $ID)) {
        return;
    }
    if ($GLOBALS["HyperCacheDebug"]) {
        events("HyperCacheRulesSave: HyperCacheRules_get(..) -> NONE -> ADD TO QUEUE BUFFER={$GLOBALS["HYPER_CACHE_BUFFER_COUNT"]} [" . __LINE__ . "]");
    }
    HyperCacheRules_set($uri, $ID);
}
Пример #2
0
function HyperCacheRulesSave($uri,$ID){
	$uri_md5=md5($uri);
	
	if(HyperCacheRulesIsStored($uri)){return true;}
	if(HyperCacheRules_get($uri,$ID)){return;}
	HyperCacheRules_set($uri,$ID);
	
	
	
	
}