X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTemplateParser.php;h=8ce342020f1c714b2cd5a34671971219c2094fe8;hb=9d9467c3a8ef2aff3c0bdfc916603232b6a2e200;hp=44d264dec9c36122644a81b912c72104a032b4da;hpb=7c21be6c559cd816434cc1772eac682f12e161b1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index 44d264dec9..8ce342020f 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -103,7 +103,7 @@ class TemplateParser { if ( $secretKey ) { // See if the compiled PHP code is stored in cache. - $cache = ObjectCache::newAccelerator( CACHE_ANYTHING ); + $cache = ObjectCache::getLocalServerInstance( CACHE_ANYTHING ); $key = $cache->makeKey( 'template', $templateName, $fastHash ); $code = $this->forceRecompile ? null : $cache->get( $key );