diff --git a/ecrire/public/global.php b/ecrire/public/global.php index a46dbca2edc4498f5e1b80eb72258626086186b4..7407380f61fc8e2f6399ba73029369e2efbf3b7b 100644 --- a/ecrire/public/global.php +++ b/ecrire/public/global.php @@ -86,9 +86,7 @@ function afficher_page_globale ($fond) { global $flag_dynamique, $flag_ob, $flag_preserver,$lastmodified, $use_cache, $var_mode, $var_preview; - include_spip('public/cache'); - $fcache = 'public_utiliser_cache_dist'; -# $fcache = include_fonction('utiliser_cache', 'public'); + $fcache = include_fonction('utiliser_cache', 'public'); // Garnir ces quatre parametres avec les infos sur le cache $fcache(NULL, $use_cache, $chemin_cache, $page, $lastmodified); @@ -199,9 +197,7 @@ function auto_expire($page) function inclure_page($fond, $contexte_inclus, $cache_incluant='') { global $lastmodified; - include_spip('public/cache'); - $fcache = 'public_utiliser_cache_dist'; -# $fcache = include_fonction('utiliser_cache', 'public'); + $fcache = include_fonction('utiliser_cache', 'public'); // Garnir ces quatre parametres avec les infos sur le cache $fcache($contexte_inclus, $use_cache, $chemin_cache, $page, $lastinclude); diff --git a/ecrire/public/cache.php b/ecrire/public/utiliser_cache.php similarity index 100% rename from ecrire/public/cache.php rename to ecrire/public/utiliser_cache.php