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-08-15 13:59:00 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-08-15 13:59:00 +0400
commit491ae474d7db68c683b39cadd93648f024e67ab8 (patch)
tree6a189087668fb405686cddfec2862d22f68e6409 /core
parentfaab1e136068314a612af9b60a6285e478bbefaf (diff)
added possibility to invalidate xcache if possible
Diffstat (limited to 'core')
-rw-r--r--core/Filesystem.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Filesystem.php b/core/Filesystem.php
index 6d4dcea677..85eda096ac 100644
--- a/core/Filesystem.php
+++ b/core/Filesystem.php
@@ -387,6 +387,15 @@ class Filesystem
if (function_exists('wincache_refresh_if_changed')) {
@wincache_refresh_if_changed(); // reset the wincache
}
+
+ if (function_exists('xcache_clear_cache') && defined('XC_TYPE_VAR')) {
+
+ if (ini_get('xcache.admin.enable_auth')) {
+ // XCache will not be cleared because "xcache.admin.enable_auth" is enabled in php.ini.
+ } else {
+ @xcache_clear_cache(XC_TYPE_VAR, 0);
+ }
+ }
}
}