Skip to content

Commit

Permalink
Merge pull request #21 from brookinsconsulting/static-cache-class-ove…
Browse files Browse the repository at this point in the history
…rride-support

Implemented: Support for static cache handler system
  • Loading branch information
lolautruche committed Oct 7, 2014
2 parents 77a981f + 5f87aa1 commit fb2a293
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion classes/sqliimportutils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit fb2a293

Please sign in to comment.