Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-07-02 14:09:51 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-07-02 14:09:51 +0400
commitb8373e7e7e672c9f46212680643b0346d78b6e5b (patch)
tree2230266dc35d1a0acc23f1626fa515fba27d4e04 /core/WidgetsList.php
parent286b05c4d5d2cac010b0cd429763112ee7dc61c4 (diff)
should fix integration tests
Diffstat (limited to 'core/WidgetsList.php')
-rw-r--r--core/WidgetsList.php8
1 files changed, 7 insertions, 1 deletions
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');
}
}