Conversion to utf-8
From Wikitech
(Difference between revisions)
(To clear messages cache in memcached) |
|||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{old}} | ||
| + | |||
To clear messages cache in memcached : | To clear messages cache in memcached : | ||
* cd /home/wikipedia/common/php-new/maintenance | * cd /home/wikipedia/common/php-new/maintenance | ||
| Line 4: | Line 6: | ||
* delete eswiki:messages | * delete eswiki:messages | ||
* quit | * quit | ||
| + | |||
| + | To invalidate the client cache, parser cache and anonymous file cache, set $wgCacheEpoch to the current date in /home/wikipedia/common/php-new/InitialiseSettings.php, for the converted wiki only. | ||
| + | |||
| + | The squid cache must be marked with the correct expiry time in advance. Something along these lines should work: | ||
| + | |||
| + | <pre> | ||
| + | $dday = strtotime('July 10'); | ||
| + | if ( $wgDBname == 'dewiki' && time() < $dday ) { | ||
| + | $wgSquidMaxage = $dday - time(); | ||
| + | } | ||
| + | </pre> | ||
Latest revision as of 22:09, 29 August 2012
To clear messages cache in memcached :
- cd /home/wikipedia/common/php-new/maintenance
- php mcc.php
- delete eswiki:messages
- quit
To invalidate the client cache, parser cache and anonymous file cache, set $wgCacheEpoch to the current date in /home/wikipedia/common/php-new/InitialiseSettings.php, for the converted wiki only.
The squid cache must be marked with the correct expiry time in advance. Something along these lines should work:
$dday = strtotime('July 10');
if ( $wgDBname == 'dewiki' && time() < $dday ) {
$wgSquidMaxage = $dday - time();
}