https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109638
Revision: 109638
Author: kaldari
Date: 2012-01-20 19:29:33 +0000 (Fri, 20 Jan 2012)
Log Message:
-----------
follow-up to 107958 - using TTL expiry to avoid timezone issues
Modified Paths:
--------------
trunk/extensions/CentralNotice/CentralNotice.php
Modified: trunk/extensions/CentralNotice/CentralNotice.php
===================================================================
--- trunk/extensions/CentralNotice/CentralNotice.php 2012-01-20 19:21:25 UTC
(rev 109637)
+++ trunk/extensions/CentralNotice/CentralNotice.php 2012-01-20 19:29:33 UTC
(rev 109638)
@@ -317,7 +317,7 @@
}
// Cache the data for 7 days
- $wgMemc->set( $cacheKey, $userData, strtotime( '+7
days' ) );
+ $wgMemc->set( $cacheKey, $userData, 7 * 86400 );
}
// Set the variable that will be output to the page
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs