From a6661af96aba5fcfb60826cfe134cbf10d6b303a Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 13 Jun 2014 16:21:54 +0200 Subject: [PATCH] there are two memcache libraries in php For those confuse about the memcached extension and the memcache extension, the short story is that both of them are clients of memcached server, and the memcached extension offer more features than the memcache extension. --- include/functions_smarty.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index b100ba1a..f6ff34b2 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -907,7 +907,7 @@ function serendipity_smarty_init($vars = array()) { // define cache resources to load with smarty - see smarty class @define('APC_EXTENSION_LOADED', extension_loaded('apc') && ini_get('apc.enabled')); - @define('MEMCACHE_EXTENSION_LOADED', class_exists('Memcache',false) && extension_loaded("memcached")); + @define('MEMCACHE_EXTENSION_LOADED', class_exists('Memcache',false) && (extension_loaded("memcached") || extension_loaded("memcache"))); // Default Smarty Engine will be used @define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/');