From 03a43ee8078d3cd7f625924768215caf7dc589ca Mon Sep 17 00:00:00 2001 From: Jerome Bakker Date: Thu, 24 Mar 2016 11:38:29 +0100 Subject: [PATCH] fixed: widget cache clear took too long --- classes/ColdTrick/WidgetManager/Cache.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/classes/ColdTrick/WidgetManager/Cache.php b/classes/ColdTrick/WidgetManager/Cache.php index 989f9ac..4d89582 100644 --- a/classes/ColdTrick/WidgetManager/Cache.php +++ b/classes/ColdTrick/WidgetManager/Cache.php @@ -20,13 +20,17 @@ public static function resetWidgetsCache($event, $type, $object) { 'type' => 'object', 'subtype' => 'widget', 'limit' => false, - 'private_setting_name' => 'widget_manager_cached_data', + 'private_setting_name_value_pairs' => [ + 'name' => 'widget_manager_cached_data', + 'value' => 0, + 'operand' => '>', + ], ]); $batch->setIncrementOffset(false); foreach ($batch as $entity) { - $entity->widget_manager_cached_data = null; + $entity->widget_manager_cached_data = 0; } elgg_set_ignore_access($ia);