summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-09 22:13:31 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-09 22:13:31 +0200
commit507e48ee5605826067293deaa169e8e0d90d9f35 (patch)
tree075319998878d60d200f7982b15455ba88476b63 /lib
parent4c0ec974b9a8b97625695edd136e1f805af0bf31 (diff)
downloadnextcloud-server-507e48ee5605826067293deaa169e8e0d90d9f35.tar.gz
nextcloud-server-507e48ee5605826067293deaa169e8e0d90d9f35.zip
don't call xcache_clear_cache on clearOpcodeCache() in case admin auth is enabled for xcache in php.ini
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index b7dc2207e6c..53ebe024724 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -869,7 +869,11 @@ class OC_Util {
}
// XCache
if (function_exists('xcache_clear_cache')) {
- xcache_clear_cache(XC_TYPE_VAR, 0);
+ if (ini_get('xcache.admin.enable_auth')) {
+ OC_Log::write('core', 'XCache will not be cleared because "xcache.admin.enable_auth" is enabled in php.ini.', \OC_Log::WARN);
+ } else {
+ xcache_clear_cache(XC_TYPE_VAR, 0);
+ }
}
// Opcache (PHP >= 5.5)
if (function_exists('opcache_reset')) {