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.
Add comment