Accelerating WordPress with WP Super Cache, Opcache and Autoptimize
Posted on In Linux, WebWordPress 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.
Table of Contents
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.
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.
You can use a small php script to check whether the Opcache is working:
<?php
phpinfo();
?>
Inside of WordPress, you do not need to do any special configuration to make OPcache run for WordPress.
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.
With all these plugins and tools, WordPress can be much accelerated. Enjoy the boosted performance of WordPress now!
WP Widget Cache is not found?
https://wordpress.org/plugins/wp-widget-cache/
How is that possible if you wrote this in February?
After this post was published, it seems the WP Widget Cache has been deprecated and is not available now. You can skip it. WP Widget Cache may not help much if you have enabled WP Super Cache + Object Cache.
Why is half of this crossed out? Is it no longer reccomended?
APC Object Cache is discontinued https://en.wikipedia.org/wiki/List_of_PHP_accelerators#Compatibility_chart . Opcache is bundled with PHP since 5.5.0 http://php.net/manual/en/intro.opcache.php .
This is confusing. Are you to use all these plugins at the same time? because some of them do the same thing