怎样使用 redis 作为 MediaWiki 的缓存后端: Difference between revisions
Created page with "== 去除 apcu == <syntaxhighlight lang="bash" line> # 如果已经使用过 apcu 作为缓存,要先去除 apcu 缓存 grep -r apc /etc/php/8.2/ # 找到 apc 相关的配置行 sudo emacs /etc/php/8.2/mods-available/apcu.ini # 注释掉对 apcu 的调用 # 进 LocalSettings.php 取消对 CACHE_ACCEL 的调用 ## Shared memory settings ## $wgMainCacheType = CACHE_ACCEL; ## $wgMemCachedServers = []; </syntaxhighlight> == 使用 redis == <syntaxhighlight lang="bash" li..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#seo: | |||
|description=本文讲述在 mediawiki 中,用 redis 缓存,替换 apcu 缓存的方法。这样可以更方便地使用 Semantic MediaWiki 的缓存功能。}} | |||
== 去除 apcu == | == 去除 apcu == | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||