Add comments with how values are calculated. Follow up of r76111
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 16 Jan 2011 16:32:58 +0000 (16:32 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 16 Jan 2011 16:32:58 +0000 (16:32 +0000)
includes/filerepo/ForeignAPIRepo.php

index c4aed10..40f9528 100644 (file)
@@ -29,9 +29,9 @@ class ForeignAPIRepo extends FileRepo {
 
        var $fileFactory = array( 'ForeignAPIFile', 'newFromTitle' );
        /* Check back with Commons after a day */
-       var $apiThumbCacheExpiry = 86400;
+       var $apiThumbCacheExpiry = 86400; /* 24*60*60 */
        /* Redownload thumbnail files after a month */
-       var $fileCacheExpiry = 2629743;
+       var $fileCacheExpiry = 2592000; /* 86400*30 */
        /* Local image directory */
        var $directory;
        var $thumbDir;