1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Manage a cache engine on WordPress or other application
This guide concerns website optimization and more specifically the use of a cache engine on it.
Introduction
- When Infomaniak notices that your website consumes more resources than other sites on the same server, an analysis is conducted.
- Often, it turns out that a simple modification of a request or a parameter would allow you to optimize your site and reduce the server load.
- You will then be contacted by email with instructions to follow, which often include the installation or activation of a cache engine.
- Resource consumption is not necessarily linked to the number of visitors.
- A well-optimized, up-to-date site with a properly configured cache engine can handle tens of thousands of daily visitors, while a poorly optimized site can consume far too many resources with just a few visits per day.
- A cache engine temporarily stores frequently used data to provide it more quickly upon new requests.
- This significantly improves the site's speed and reduces the load on databases or web services.
- To install a caching system on **Serveur Cloud** Infomaniak, refer to **this other guide**.
Enable a cache engine...
β¦ on WordPress
WordPress has many cache plugins. Here are the most popular and effective ones:
- WP Super Cache (free, easy to set up)
- W3 Total Cache (advanced, multiple options)
- WP Rocket (paid, simple and performant interface)
Activation procedure:
- Log in to your WordPress admin.
- Go to Plugins > Add New.
- Search for one of the mentioned plugins, install it, and then activate it.
- Configure the cache options according to your needs: page caching, CSS/JS file minification, gzip compression, etc.
- Test the performance with and without cache using tools like Google PageSpeed Insights or GTmetrix.
To learn more, also check out:
- https://news.infomaniak.com/6-moyens-techniques-pour-optimiser-un-site-wordpress/
- https://news.infomaniak.com/memcached-w3totalcache/
- https://www.seomix.fr/?s=cache
... on Joomla
Log in to the Joomla administration and then follow these steps:
- Go to System > Global Configuration.
- Select the System tab.
- In the Cache section, enable the system cache.
- Choose the type of cache: Conservative (individual user cache) or Progressive (shared cache between users). Progressive caching is recommended for better performance.
- Set the cache validity duration in minutes (for example, 60 minutes for an active site or longer for a static site).
- Save the settings.
- To manually clear the cache, go to System > Manage cache and then delete the cache files.
Joomla 5 features improved cache management and a modernized interface compared to version 4.x.
... on PrestaShop
Log in to the PrestaShop administration then:
- Go to the menu Advanced Settings > Performance.
- In the Smarty section, enable the Cache option.
- In the CCC (Combine, Compress and Cache) section, enable all available options.
- In the Cache section, enable Use cache.
- Follow the instructions to install the recommended extensions or modules (e.g. Memcached, Redis) for additional optimization.
- Save your changes.
... on Magento
Magento 1.x is obsolete. For Magento 2, proceed as follows:
- Log in to the Magento admin.
- Go to System > Cache Management.
- The cache is enabled by default. You can flush or refresh the cache from this interface.
- Make sure all recommended cache types (Configuration, Page Cache, Layouts, etc.) are enabled.
- For optimal performance, use additional solutions like Redis or Varnish if your hosting supports them.
... on Contao (version 4.x)
Log in to the Contao back office then:
- Go to Modules > System > Configuration.
- In Cache mode, check the options Use system cache and Use browser cache.
- Save your changes.
... on Drupal (version 9.x)
For Drupal 7.x (still in use but not recommended), proceed as follows:
- Log in to the Drupal administration.
- Go to Configuration > Performance.
- Check the box Cache pages for anonymous users.
- Save.
For Drupal 9.x (recommended): caching is enabled by default and managed via internal modules. You can configure the cache in Configuration > Development > Performance. To further improve performance, use external systems such as Redis or Varnish if available.