r16876 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16875‎ | r16876 | r16877 >
Date:23:24, 8 October 2006
Author:tstarling
Status:old
Tags:
Comment:
Some message caches are over 1MB
Modified paths:
  • /trunk/phase3/includes/MessageCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/MessageCache.php
@@ -78,7 +78,7 @@
7979 $localHash = fread( $file, 32 );
8080 if ( $hash == $localHash ) {
8181 // All good, get the rest of it
82 - $serialized = fread( $file, 1000000 );
 82+ $serialized = fread( $file, 10000000 );
8383 $this->mCache = unserialize( $serialized );
8484 }
8585 fclose( $file );