static function removeAllExpiryCacheFromDisk() { $expiryCachePath = eZTemplateCacheFunction::expiryTemplateBlockCacheDir(); eZSubtreeCache::removeExpiryCacheFromDisk( $expiryCachePath ); }
static function removeAllExpiryCacheFromDisk() { eZSubtreeCache::removeExpiryCacheFromDisk(eZSys::cacheDirectory() . '/template-block-expiry'); }
<?php /** * File containing the subtreeexpirycleanup.php cronjob * * @copyright Copyright (C) eZ Systems AS. All rights reserved. * @license For full copyright and license information view LICENSE file distributed with this source code. * @version //autogentag// * @package kernel */ eZSubtreeCache::removeAllExpiryCacheFromDisk();
static function clearAllContentCache($ignoreINISettings = false) { if (!$ignoreINISettings) { $ini = eZINI::instance(); $viewCacheEnabled = $ini->variable('ContentSettings', 'ViewCaching') === 'enabled'; $templateCacheEnabled = $ini->variable('TemplateSettings', 'TemplateCache') === 'enabled'; } else { $viewCacheEnabled = true; $templateCacheEnabled = true; } if ($viewCacheEnabled || $templateCacheEnabled) { // view cache and/or ordinary template block cache eZContentObject::expireAllCache(); // subtree template block caches if ($templateCacheEnabled) { eZSubtreeCache::cleanupAll(); } } }