From: Aaron Schulz Date: Thu, 24 Jan 2013 21:31:40 +0000 (-0800) Subject: [FileRepo] Lowered negative caching duration. X-Git-Tag: 1.31.0-rc.0~20876^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=7cd5b25321f56b79588adb3566eaa0afcc503bfc;p=lhc%2Fweb%2Fwiklou.git [FileRepo] Lowered negative caching duration. Change-Id: I288ce2eef3cf547e254843c7f806925ee44391ca --- diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 9babe5a0e4..6c20eb1109 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -252,7 +252,8 @@ class LocalFile extends File { } } - $wgMemc->set( $key, $cache, 60 * 60 * 24 * 7 ); // A week + // Cache presence for 1 week and negatives for 1 day + $wgMemc->set( $key, $cache, $this->fileExists ? 86400 * 7 : 86400 ); } /**