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
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-10-06 11:33:48 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-10-06 11:33:48 +0400
commitf59fbe49a30c39f62317e5b656f3343663c7024e (patch)
treebfcfb3151ad58c3c0e16ea5a3ca79e55007278b4 /core
parentb9112763026b85398b2406a478c0436088ef461c (diff)
refs #5940 this might fix the integration tests. Took me a long time to figure out what is going on. We should reset all the caches at least before each class otherwise the tests are no longer atomic and therefore worthless. This test was working when executing only this test but not when executing all tests
Diffstat (limited to 'core')
-rw-r--r--core/Cache/StaticCache.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Cache/StaticCache.php b/core/Cache/StaticCache.php
index b09f49ae0b..0c102e18d3 100644
--- a/core/Cache/StaticCache.php
+++ b/core/Cache/StaticCache.php
@@ -70,6 +70,15 @@ class StaticCache
}
/**
+ * Reset the stored content of the current cache key.
+ * @ignore
+ */
+ public static function clearAll()
+ {
+ self::$staticCache = array();
+ }
+
+ /**
* Set (overwrite) any content related to the current set cache key.
* @param $content
*/