Skip to content

Instantly share code, notes, and snippets.

@Marginal
Created May 17, 2016 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marginal/3be9c1677834d0ff2a78bd09143cf7c8 to your computer and use it in GitHub Desktop.
Save Marginal/3be9c1677834d0ff2a78bd09143cf7c8 to your computer and use it in GitHub Desktop.
--- lib/private/cache/file.php.bak 2016-05-17 02:49:25.000000000 +0100
+++ lib/private/cache/file.php 2016-05-17 14:07:34.000000000 +0100
@@ -182,6 +182,7 @@
try {
$mtime = $storage->filemtime('/' . $file);
if ($mtime < $now) {
+ \OCP\Util::writeLog('OC\Cache\File::gc', sprintf('Discarding: %s', $file), \OCP\Util::INFO);
$storage->unlink('/' . $file);
}
} catch (\OCP\Lock\LockedException $e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment