From b8373e7e7e672c9f46212680643b0346d78b6e5b Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Wed, 2 Jul 2014 12:09:51 +0200 Subject: should fix integration tests --- core/WidgetsList.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'core/WidgetsList.php') diff --git a/core/WidgetsList.php b/core/WidgetsList.php index be41740ed8..b18807b74d 100644 --- a/core/WidgetsList.php +++ b/core/WidgetsList.php @@ -56,7 +56,7 @@ class WidgetsList extends Singleton */ static public function get() { - $cache = new PluginAwareStaticCache('WidgetsList'); + $cache = self::getCacheForCompleteList(); if ($cache->has()) { return $cache->get(); } @@ -244,5 +244,11 @@ class WidgetsList extends Singleton { self::$widgets = array(); self::$hookCalled = false; + self::getCacheForCompleteList()->clear(); + } + + private static function getCacheForCompleteList() + { + return new PluginAwareStaticCache('WidgetsList'); } } -- cgit v1.2.3