apc和opcache_使用WP Super Cache,Opcache和Autoptimize加速WordPress

apc和opcache

WordPress can be very fast after some effort on performance optimization with the help from its plenty of plugins. Possible ways include using cache to cut down the number of database queries, improves HTML/JavaScript/CSS code, and optimizing PHP’s performance with opcode cache. In this post, we introduce how to speed up WordPress with OPcache, page cache and page optimization tools/plugins.

经过大量插件的帮助,WordPress在性能优化上可以非常快。 可能的方法包括使用缓存来减少数据库查询的数量,改善HTML / JavaScript / CSS代码以及使用操作码缓存来优化PHP的性能。 在本文中,我们介绍如何使用OPcache,页面缓存和页面优化工具/插件来加快 WordPress的运行速度

Accelerating WordPress

安装WP Super Cache∞ (Install WP Super Cache )

Search WP Super Cache in the WordPress dashboard, install it, activate it and enable the caching in the plugin admin page.

在WordPress仪表板中搜索WP Super Cache ,进行安装,激活并在插件管理页面中启用缓存。

在PHP中启用OPcache (Enable OPcache in PHP )

OPcache improves PHP performance by storing precompiled script bytecode in shared memory. The need for PHP to load and parse scripts on each request is not needed if the bytecode has been cached. OPcache is bundled with PHP 5.5.0 and later.

OPcache通过将预编译的脚本字节码存储在共享内存中来提高PHP性能。 如果字节码已被缓存,则不需要PHP在每个请求上加载和解析脚本。 OPcache与PHP 5.5.0及更高版本捆绑在一起。

You can use a small php script to check whether the Opcache is working:

您可以使用一个小的php脚本来检查Opcache是​​否正常工作:

<?php
phpinfo();
?>

Inside of WordPress, you do not need to do any special configuration to make OPcache run for WordPress.

在WordPress内部,您无需进行任何特殊配置即可使OPcache为WordPress运行。

优化HTML页面,脚本和CSS 文件 (Optimize HTML pages, scripts and CSS files )

Autoptimize is a great plugin that can aggregate, minify and cache scripts and styles, injects CSS in the page and minifies the HTML code. There are quite a lot options to tune to make it work for your sites.

Autoptimize是一个很棒的插件,可以聚合,最小化和缓存脚本和样式,在页面中注入CSS并最小化HTML代码。 有很多选项可以调整以使其适合您的网站。

With all these plugins and tools, WordPress can be much accelerated. Enjoy the boosted performance of WordPress now!

使用所有这些插件和工具,WordPress可以大大加速。 立即享受WordPress增强的性能!

翻译自: https://www.systutorials.com/speeding-up-wordpress-with-apc-object-cache-and-wp-super-cache/

apc和opcache

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值