Page is a draft due to changes in included resources
You are viewing an old version of this page. Return to the latest version.
Version of 10:48, 17 September 2019 by MLR
Difference between revisions of "Setup:Installation Guide/Advanced/Performance Optimization/ManualRecache"
< Setup:Installation Guide | Advanced | Performance OptimizationReturn to history page
← Setup:Installation Guide/Advanced/Performance Optimization/ManualRecache
← Setup:Installation Guide/Advanced/Performance Optimization/ManualRecache
[quality revision] | [quality revision] |
(translation EN) (Tag: 2017 source edit) |
m (Text replacement - "[[en:{{PAGENAME}}]]" to "[[en:{{FULLPAGENAME}}]]") |
To prevent Rebuilding LocalizationCache with every page call, apply the following configuration:
When following these instructions, make sure that the $wgCacheDirectory variable is set in advance. This is already the case in the BlueSpice standard delivery in the file settings.d/005-Directories.php. |
This performance optimization achieves the best performance by enabling and configuring opcache in PHP. |
In the settings.d
folder of your codebase, create the file 006-ManualRecache.php with the following contents:
<?php
$wgLocalisationCacheConf = [
'class' => LocalisationCache::class,
'store' => 'array',
'storeClass' => false,
'storeDirectory' => $wgCacheDirectory,
'manualRecache' => true,
];
Then delete all existing files in the cache
folder of your codebase. Then manually re-create the LocalizationCache by entering the following on your console:
php /pfad/zur/installation/maintenance/rebuildLocalisationCache.php --force
Finally, make sure that this is done regularly in the background via cronjob ("Task Scheduler" under Windows). We recommend this twice a day, for example at 6am and 6pm.
{{DISPLAYTITLE:Performance Optimization: ManualRecache of LanguageCache}} To prevent Rebuilding LocalizationCache with every page call, apply the following configuration: {{Template:Hint|text= When following these instructions, make sure that the $wgCacheDirectory variable is set in advance. This is already the case in the BlueSpice standard delivery in the file settings.d/005-Directories.php.}} {{Template:Hint|text=This performance optimization achieves the best performance by enabling and configuring [[Setup: Installation Guide / Compendium / Performance Optimization / /Advanced/Performance Optimization/PHP | opcache in PHP]].}} In the <code>settings.d</code> folder of your codebase, create the file 006-ManualRecache.php with the following contents: <syntaxhighlight lang="php"> <?php $wgLocalisationCacheConf = [ 'class' =><?php $wgLocalisationCacheConf = [ 'class' => LocalisationCache::class, 'store' => 'array', 'storeClass' => false, 'storeDirectory' => $wgCacheDirectory, 'manualRecache' => true, ]; </syntaxhighlight> Then delete all existing files in the <code>cache</code> folder of your codebase. Then manually re-create the LocalizationCache by entering the following on your console: <syntaxhighlight lang="bash"> php /pfad/zur/installation/maintenance/rebuildLocalisationCache.php --force </syntaxhighlight> Finally, make sure that this is done regularly in the background via cronjob ("Task Scheduler" under Windows). We recommend this twice a day, for example at 6am and 6pm. [[en:{{PAGENAME}}]]FULLPAGENAME}}]] [[de:Setup:Installationsanleitung/Kompendium/Performance-Optimierungen/ManualRecache]]
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Performance Optimization: ManualRecache of LanguageCache}} | {{DISPLAYTITLE:Performance Optimization: ManualRecache of LanguageCache}} | ||
+ | |||
To prevent Rebuilding LocalizationCache with every page call, apply the following configuration: | To prevent Rebuilding LocalizationCache with every page call, apply the following configuration: | ||
− | |||
− | |||
{{Template:Hint|text= | {{Template:Hint|text= | ||
− | When following these instructions, make sure that the $wgCacheDirectory variable is set in advance. This is already the case in the BlueSpice standard delivery in the file settings.d/005-Directories.php.}} | + | When following these instructions, make sure that the $wgCacheDirectory variable is set in advance. This is already the case in the BlueSpice standard delivery in the file settings.d/005-Directories.php.}}{{Template:Hint|text=This performance optimization achieves the best performance by enabling and configuring [[Setup:Installation Guide/Advanced/Performance Optimization/PHP | opcache in PHP]].}} |
− | |||
− | {{Template:Hint|text=This performance optimization achieves the best performance by enabling and configuring [[Setup: Installation Guide / | ||
− | |||
In the <code>settings.d</code> folder of your codebase, create the file 006-ManualRecache.php with the following contents: | In the <code>settings.d</code> folder of your codebase, create the file 006-ManualRecache.php with the following contents: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
<?php | <?php | ||
− | |||
$wgLocalisationCacheConf = [ | $wgLocalisationCacheConf = [ | ||
'class' => LocalisationCache::class, | 'class' => LocalisationCache::class, | ||
Line 29: | Line 24: | ||
Finally, make sure that this is done regularly in the background via cronjob ("Task Scheduler" under Windows). We recommend this twice a day, for example at 6am and 6pm. | Finally, make sure that this is done regularly in the background via cronjob ("Task Scheduler" under Windows). We recommend this twice a day, for example at 6am and 6pm. | ||
− | [[en:{{ | + | [[en:{{FULLPAGENAME}}]] |
+ | [[de:Setup:Installationsanleitung/Kompendium/Performance-Optimierungen/ManualRecache]] |