From 5f87aa12e2cc256fb9ed12df7f4d468ddb0c2621 Mon Sep 17 00:00:00 2001 From: Brookins Consulting Date: Wed, 24 Sep 2014 01:06:01 -0500 Subject: [PATCH] Implemented: Support for static cache handler system. Added StaticCache enabled check before performing executeActions method to mirror kernel implementation --- classes/sqliimportutils.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/classes/sqliimportutils.php b/classes/sqliimportutils.php index bac799c..225ba6c 100755 --- a/classes/sqliimportutils.php +++ b/classes/sqliimportutils.php @@ -269,7 +269,17 @@ public static function viewCacheClear() } unset( $aObjectsToClear ); eZContentObject::clearCache(); - eZStaticCache::executeActions(); + + if ( eZINI::instance( 'site.ini' )->variable( 'ContentSettings', 'StaticCache' ) == 'enabled' ) + { + $optionArray = array( 'iniFile' => 'site.ini', + 'iniSection' => 'ContentSettings', + 'iniVariable' => 'StaticCacheHandler' ); + + $options = new ezpExtensionOptions( $optionArray ); + $staticCacheHandler = eZExtension::getHandlerClass( $options ); + $staticCacheHandler::executeActions(); + } } while( $i < $count );