From b1df14ca4aaf1beb350818aacedb326b2d6bd699 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 10 Aug 2009 11:46:47 +0100 Subject: [PATCH] only cache gets --- core/util.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index 48452dea..b14cd686 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -724,7 +724,7 @@ $_cache_memcache = false; $_cache_filename = null; function _cache_active() { - return ((CACHE_MEMCACHE || CACHE_DIR) && !isset($_COOKIE["shm_session"]) && !isset($_COOKIE["shm_nocache"])); + return ((CACHE_MEMCACHE || CACHE_DIR) && $_SERVER["REQUEST_METHOD"] == "GET" && !isset($_COOKIE["shm_session"]) && !isset($_COOKIE["shm_nocache"])); } function _start_cache() {