X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FTemplateParser.php;h=8ce342020f1c714b2cd5a34671971219c2094fe8;hb=a2ea9f8b9289f197844e3282c2ac39e59c549996;hp=44d264dec9c36122644a81b912c72104a032b4da;hpb=ff9f2fa33719753ff0c708f9b4a84c57593b9e58;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 );