diff options
author | Frederik Kammer <frederik.kammer@osnaware.de> | 2016-03-22 16:49:14 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-24 14:55:26 +0200 |
commit | 299520b32249881a2e459f9812c55dfc79f6d746 (patch) | |
tree | 5a72acec4bff7ed7a564b54c1ce76a1e84fb50af /lib | |
parent | f7d102ccc59c8290d7e1caedb9862764bd831eaf (diff) | |
download | nextcloud-server-299520b32249881a2e459f9812c55dfc79f6d746.tar.gz nextcloud-server-299520b32249881a2e459f9812c55dfc79f6d746.zip |
Add config value for cache gc ttl
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Cache/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Cache/File.php b/lib/private/Cache/File.php index 38f88959bd7..f2992a614e4 100644 --- a/lib/private/Cache/File.php +++ b/lib/private/Cache/File.php @@ -111,7 +111,7 @@ class File implements ICache { $keyPart = $key . '.' . $uniqueId . '.part'; if ($storage and $storage->file_put_contents($keyPart, $value)) { if ($ttl === 0) { - $ttl = 86400; // 60*60*24 + $ttl = \OC::$server->getConfig()->getSystemValue('cache_folder_gc_ttl', 86400); } $result = $storage->touch($keyPart, time() + $ttl); $result &= $storage->rename($keyPart, $key); |