Mailing List Archive

SVN: [114793] trunk/extensions/PageTriage/includes/ArticleMetadata.php
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114793

Revision: 114793
Author: kaldari
Date: 2012-04-07 01:08:35 +0000 (Sat, 07 Apr 2012)
Log Message:
-----------
cache metadata for 24 hours max so that info (especially about users) isnt too out of date

Modified Paths:
--------------
trunk/extensions/PageTriage/includes/ArticleMetadata.php

Modified: trunk/extensions/PageTriage/includes/ArticleMetadata.php
===================================================================
--- trunk/extensions/PageTriage/includes/ArticleMetadata.php 2012-04-07 00:52:49 UTC (rev 114792)
+++ trunk/extensions/PageTriage/includes/ArticleMetadata.php 2012-04-07 01:08:35 UTC (rev 114793)
@@ -122,7 +122,7 @@
global $wgMemc;

$this->flushMetadataFromCache( $pageId );
- $wgMemc->set( $this->memcKeyPrefix() . '-' . $pageId, $singleData );
+ $wgMemc->set( $this->memcKeyPrefix() . '-' . $pageId, $singleData, 86400 ); // 24 hours
}

/**


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs