diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-13 16:28:49 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-13 16:28:49 +0100 |
commit | 181bbd4325ea2b21ff8ecca93eb5ac839d6a739d (patch) | |
tree | 18fdd4bfdbd2de538ebe996e7ddb580a07450994 /lib/private/cache | |
parent | 4b84e3a7e8bf7dc0a8e62074803f97a81571ca22 (diff) | |
download | nextcloud-server-181bbd4325ea2b21ff8ecca93eb5ac839d6a739d.tar.gz nextcloud-server-181bbd4325ea2b21ff8ecca93eb5ac839d6a739d.zip |
Remove usage of legacy OC_Appconfig
Diffstat (limited to 'lib/private/cache')
-rw-r--r-- | lib/private/cache/fileglobal.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/cache/fileglobal.php b/lib/private/cache/fileglobal.php index bd049bba4d0..95b7ceb099f 100644 --- a/lib/private/cache/fileglobal.php +++ b/lib/private/cache/fileglobal.php @@ -81,13 +81,14 @@ class FileGlobal { } static public function gc() { - $last_run = \OC_AppConfig::getValue('core', 'global_cache_gc_lastrun', 0); + $appConfig = \OC::$server->getAppConfig(); + $last_run = $appConfig->getValue('core', 'global_cache_gc_lastrun', 0); $now = time(); if (($now - $last_run) < 300) { // only do cleanup every 5 minutes return; } - \OC_AppConfig::setValue('core', 'global_cache_gc_lastrun', $now); + $appConfig->setValue('core', 'global_cache_gc_lastrun', $now); $cache_dir = self::getCacheDir(); if($cache_dir and is_dir($cache_dir)) { $dh=opendir($cache_dir); |