diff --git a/e107_handlers/cache_handler.php b/e107_handlers/cache_handler.php index cd9217bf0..9fc38c77e 100644 --- a/e107_handlers/cache_handler.php +++ b/e107_handlers/cache_handler.php @@ -14,7 +14,7 @@ if (!defined('e107_INIT')) { exit; } -define('CACHE_PREFIX',''); /** * Class to cache data as files, improving site speed and throughput. @@ -33,7 +33,7 @@ class ecache { public $SystemCacheActive; // Checkable flag - TRUE if system cache enabled private $lastError; - const CACHE_PREFIX = ''; function __construct() { @@ -153,11 +153,15 @@ class ecache { $this->lastError = "Couldn't read ".$cache_file; } - if (substr($ret,0,strlen(self::CACHE_PREFIX)) == self::CACHE_PREFIX) + if (strpos($ret, self::CACHE_PREFIX) === 0) { $ret = substr($ret, strlen(self::CACHE_PREFIX)); } - elseif(substr($ret,0,5) == '