Conversion to utf-8

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(To clear messages cache in memcached)
 
m (Reverted edits by Krinkle (talk) to last revision by Tim)
 
(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

Warning: This page is old. It is kept as an archive. Do not expect anything on it to be relevant to the current day.

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();
}
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox