Home / Community / Blog

I've noticed that in one of my old pages, based on ezPublish 4.4 ezcache script does not do anything.

I've found solution. You have to applay patch to kernel/classes/ezcache.php file. Diff looks like this:

--- kernel/classes/ezcache.php-2015-06-10       2012-05-22 18:40:06.000000000 +0200
+++ kernel/classes/ezcache.php  2015-06-11 00:30:00.126363504 +0200
@@ -451,10 +451,12 @@
         $cacheItem['iterationSleep'] = $iterationSleep;
         $cacheItem['iterationMax']   = $iterationMax;
         $cacheItem['expiry']         = $expiry;
-        $functionName = 'function';
+        $functionName = false;
         if ( $purge && isset( $cacheItem['purge-function'] ) )
             $functionName = 'purge-function';
-        if ( isset( $cacheItem[$functionName] ) )
+        else if ( !$purge && isset( $cacheItem['function'] ) )
+            $functionName = 'function';
+        if ( $functionName )
         {
             $function = $cacheItem[$functionName];
             if ( is_callable( $function ) )

Now command

php bin/php/ezcache.php --clear-all --purge

works.

Just my blog...

Mon Tue Wed Thu Fri Sat Sun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30