summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-09 22:14:28 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-09 22:14:28 +0200
commitc84171cec0669dbe459ea2b5daf573a50f20e314 (patch)
treed9f62d3101efe2ea5a3004cfe7e28cb627d3b6fc /lib
parent507e48ee5605826067293deaa169e8e0d90d9f35 (diff)
downloadnextcloud-server-c84171cec0669dbe459ea2b5daf573a50f20e314.tar.gz
nextcloud-server-c84171cec0669dbe459ea2b5daf573a50f20e314.zip
don't use xcache in case admin auth is enabled in php.ini - this can cause issues
Diffstat (limited to 'lib')
-rw-r--r--lib/memcache/xcache.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/memcache/xcache.php b/lib/memcache/xcache.php
index 33de30562f9..7880518fd9f 100644
--- a/lib/memcache/xcache.php
+++ b/lib/memcache/xcache.php
@@ -10,7 +10,7 @@ namespace OC\Memcache;
class XCache extends Cache {
/**
- * entries in XCache gets namespaced to prevent collisions between owncloud instances and users
+ * entries in XCache gets namespaced to prevent collisions between ownCloud instances and users
*/
protected function getNameSpace() {
return $this->prefix;
@@ -44,11 +44,16 @@ class XCache extends Cache {
static public function isAvailable(){
if (!extension_loaded('xcache')) {
return false;
- } elseif (\OC::$CLI) {
+ }
+ if (\OC::$CLI) {
+ return false;
+ }
+ // as soon as admin auth is enabled we can run into issues with admin ops like xcache_clear_cache
+ if (ini_get('xcache.admin.enable_auth')) {
return false;
- }else{
- return true;
}
+
+ return true;
}
}