From 7cd5b25321f56b79588adb3566eaa0afcc503bfc Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 24 Jan 2013 13:31:40 -0800 Subject: [PATCH] [FileRepo] Lowered negative caching duration. Change-Id: I288ce2eef3cf547e254843c7f806925ee44391ca --- includes/filerepo/file/LocalFile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } /** -- 2.20.1