Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Node cleanup accumulator also for events
diff --git a/kernel/classes/ezcontentcachemanager.php b/kernel/classes/ezcontentcachemanager.php
index 6dc5792..4adceeb 100644
--- a/kernel/classes/ezcontentcachemanager.php
+++ b/kernel/classes/ezcontentcachemanager.php
@@ -769,13 +769,17 @@ class eZContentCacheManager
if ( eZContentCache::inCleanupThresholdRange( $cleanupValue ) )
{
+ eZDebug::accumulatorStart( 'node_cleanup_event', '', 'Node cleanup event content/cache (' . count( $nodeList ) . ')' );
$nodeList = ezpEvent::getInstance()->filter( 'content/cache', $nodeList );
+ eZDebug::accumulatorStop( 'node_cleanup_event' );
eZContentCache::cleanup( $nodeList );
}
else
{
eZDebug::writeDebug( "Expiring all view cache since list of nodes({$cleanupValue}) exceeds site.ini\[ContentSettings]\CacheThreshold", __METHOD__ );
+ eZDebug::accumulatorStart( 'node_cleanup_event', '', 'Node cleanup event content/cache/all' );
ezpEvent::getInstance()->notify( 'content/cache/all' );
+ eZDebug::accumulatorStop( 'node_cleanup_event' );
eZContentObject::expireAllViewCache();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.