Magento WordPress Integration Caching and OptimisationWordPress Integration

« Back to Magento WordPress Integration

It is important to consider the speed of your WordPress installation when WordPress is integrated into Magento. As some requests will load the WordPress code library, having a slow WordPress installation can have an impact on the overall speed of your Magento website. This article aims to help with optimising the integration and WordPress itself.

The module is designed to only include WordPress when code in Magento calls for it. By default, the FishPig_WordPress module and WordPress itself won't be included on the checkout, the cart, the customer account, api or any other time sensitive sections of your website and where it's not needed. If you do find it running on any of these pages, it is because you have added custom code that triggers the loading of WordPress.

WordPress Configuration

The faster WordPress runs, the less impact it will have on Magento. To this end, you should uninstall and delete any WordPress plugins that you don't need or aren't using. The fewer plugins you have in WordPress, the quicker it will run.

You should also keep WordPress updated to the latest version as this will usually be faster and more secure.

WordPress Caching Plugins

It may seem logical to install WordPress caching plugins to increase the performance of WordPress but more often than not, this has the opposite impact when WordPress is integrated into Magento.

As the Magento frontend is responsible for displaying the blog, you should look at optimising in Magento. Any good Magento optimisation module should also optimise content from WordPress.

Full Page Cache

The best way to ensure that WordPress is fast and has no impact of the site speed what so ever is to install a good Magento 2 Full Page Cache. The FishPig FPC is the fastest FPC available for Magento 2 (even faster than the built in Magento 2 FPC) and will cover Magento, WordPress and any third party Magento 2 module that you install.

Installing the Full Page Cache module will decrease your time to first byte (TTFB) of both Magento and WordPress content to less than half a second, with speeds as low as 0.2 seconds being recorded. These speeds can be achieved with our FPC regardless of how many products you have in your database.

Other Speed Tips

Here are a few more speed tips for Magento WordPress Integration:

  • Use PHP 7 and not PHP 5 as PHP 7 is much faster. Also use OPCache on your live server. This will make a massive difference in the speed of any PHP code on your server.
  • Block bots with our new Magento 2 Security module. This covers both Magento and WordPress.
  • Run any uploaded image through a free online image minifier before uploading to WordPress.