diff --git a/inc-cache.php3 b/inc-cache.php3 index 2794cdf981706430bbf791b40b5688e82ed4e558..dca150a08d8b1c421eb07bb0500489301ad8a2f6 100644 --- a/inc-cache.php3 +++ b/inc-cache.php3 @@ -142,12 +142,14 @@ function utiliser_cache(&$chemin_cache, $delais) { } // recalcul obligatoire - $ok_cache &= ($GLOBALS['recalcul'] != 'oui'); + + $ok_cache &= (($GLOBALS['recalcul'] != 'oui') || + (!$GLOBALS['HTTP_COOKIE_VARS']['spip_session'])); // ne jamais recalculer pour les moteurs de recherche, proxies... if ($HTTP_SERVER_VARS['REQUEST_METHOD'] == 'HEAD') $ok_cache = true; - + spip_log("'$ok_cache'"); return $ok_cache; }