diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-15 13:59:00 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-15 13:59:00 +0400 |
commit | 491ae474d7db68c683b39cadd93648f024e67ab8 (patch) | |
tree | 6a189087668fb405686cddfec2862d22f68e6409 /core/Filesystem.php | |
parent | faab1e136068314a612af9b60a6285e478bbefaf (diff) |
added possibility to invalidate xcache if possible
Diffstat (limited to 'core/Filesystem.php')
-rw-r--r-- | core/Filesystem.php | 9 |
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); + } + } } } |