Debian/Ubuntu 安装并启用 PHP APCu caching

By 大伟哥 | 2020-12-04,周五, 10:57
PHP APCu caching can improve your site's performance considerably. It is highly recommended to have APCu installed on your server.

Drupal 的后台状态报告里,总是推荐启用 PHP APCu caching,说是能提升网站性能。具体能提升多少,咱也不懂,咱也不敢问。总之后台推荐的事,干就完了。

使用Debian/Ubuntu Server,就是省事:

sudo apt install php7.4-apcu php7.4-apcu-bc

安装就重启一下php和apache服务就可以了:

sudo service php7.4-fpm restart
sudo service apache2 restart

再刷新Drupal后台,就可以看到PHP APCU CACHING已经成功启用了。

PHP APCU CACHING Enabled (32 MB) Memory available: 31.52 MB.

添加新评论

此字段内容将保密,不会被其他人看见。
  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
发布评论前,请通过下面的验证,以免被当作垃圾评论机器人屏蔽。
1 + 9 =
计算出这道简单的算术题并键入答案。例如、1+3,就输入 4。