This guide explains how to optimize the performance of your WordPress website in the ShockWare Systems Web Cloud.
Create a current backup of your website before making major changes.
Change only one setting at a time where possible and then verify that your website still functions correctly.
For new WordPress installations, LiteSpeed Cache is preinstalled automatically.
Open in the WordPress admin:
LiteSpeed Cache → Dashboard
First check whether the plugin is activated.
LiteSpeed Cache can optimize the following areas, among others:
Do not use multiple full-featured caching plugins at the same time. This can cause broken displays or stale content.
Plugins such as WP Rocket, W3 Total Cache or WP Super Cache should not be used in addition for the same page cache.
Open:
LiteSpeed Cache → Cache
Enable the cache for publicly accessible pages.
The page cache stores already generated pages and can therefore significantly reduce load times.
After changes to the website you can clear the cache via the WordPress admin bar.
For new WordPress installations, Redis Object Cache is also preinstalled.
Redis stores frequently needed database queries in memory and can speed up recurring accesses.
Open in the WordPress admin:
Settings → Redis
Check the connection status there.
If a connection is shown, you can enable the object cache.
Use either the Redis feature of LiteSpeed Cache or the Redis Object Cache plugin. Do not enable both object cache solutions at the same time.
Use a recent PHP version that is supported by WordPress as well as your plugins and themes.
Open in your Web Cloud:
Website → Advanced → Developer Tools → PHP
Select the desired PHP version there.
A newer PHP version can improve performance. However, check your site's compatibility beforehand.
PHP OPcache stores already compiled PHP code and thus reduces overhead for repeated page requests.
OPcache is usually available in the Web Cloud.
Check under PHP.ini Editor whether the following directive is enabled:
opcache.enable = 1
Change other OPcache values only if you understand their effects.
Large images are one of the most common causes of long load times.
Pay attention to the following points:
LiteSpeed Cache offers additional image optimization features.
LiteSpeed Cache can minify or combine CSS and JavaScript files.
Enable these features step-by-step.
After each change, check in particular:
Combining or deferring the loading of files can cause display errors with some themes and plugins.
If problems occur, you should disable the most recently activated optimization and clear the cache.
Open:
LiteSpeed Cache → Database
There you can, among other things, clean up the following data:
Create a backup before performing extensive database cleanup.
Each active plugin can cause additional files, database queries or background processes.
Remove plugins and themes that are no longer needed.
Deactivated plugins should also be deleted if you will not use them permanently.
You can connect Cloudflare to your Web Cloud via an API token.
Cloudflare can provide the following functions, among others:
Use a restricted Cloudflare API token for the connection and not the global API key.
When making changes to WordPress, you may need to clear both the WordPress cache and the Cloudflare cache.
Clear the cache especially after:
Consider the following caches in order:
Test your website both while logged in and in a private browser window.
Check in particular:
A high test score alone is not decisive. The website must still function fully and reliably.
Clear the LiteSpeed, Redis, Cloudflare and browser cache.
Disable the most recently enabled CSS or JavaScript optimizations and then clear the cache.
Disable the object cache via the plugin or, if necessary, remove the file:
wp-content/object-cache.php
Check the page cache and clear the public cache of LiteSpeed and Cloudflare.