diff options
Diffstat (limited to 'lib/cache/apc.php')
-rw-r--r-- | lib/cache/apc.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/cache/apc.php b/lib/cache/apc.php index b1ce87f5267..6cf47d0c158 100644 --- a/lib/cache/apc.php +++ b/lib/cache/apc.php @@ -7,11 +7,20 @@ */ class OC_Cache_APC { + protected $prefix; + + public function __construct($global = false) { + $this->prefix = OC_Util::getInstanceId().'/'; + if (!$global) { + $this->prefix .= OC_User::getUser().'/'; + } + } + /** * entries in APC gets namespaced to prevent collisions between owncloud instances and users */ protected function getNameSpace() { - return OC_Util::getInstanceId().'/'.OC_User::getUser().'/'; + return $this->prefix; } public function get($key) { |