[FileRepo] Lowered negative caching duration.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 24 Jan 2013 21:31:40 +0000 (13:31 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 28 Jan 2013 17:49:20 +0000 (09:49 -0800)
Change-Id: I288ce2eef3cf547e254843c7f806925ee44391ca

includes/filerepo/file/LocalFile.php

index 9babe5a..6c20eb1 100644 (file)
@@ -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 );
        }
 
        /**