Caching and Redis
Netkeel speeds up websites in two layers:
- the page cache keeps finished pages and hands them straight to the next visitor;
- the Redis object cache speeds up the pages the page cache can’t help with, such as admin screens, carts and logged-in visitors.
Purge the cache
Section titled “Purge the cache”After changing content or design, clear the cache so visitors see the new version:
- On the website’s overview, click Purge cache.
- On any other section, open More and choose Purge cache.
The panel shows “Website cache purged” when it is done.
Turn the page cache on or off
Section titled “Turn the page cache on or off”Go to Hosting › PHP and set Page cache to Enabled or No page cache. The change applies straight away. This option appears when the website’s server supports it.
Keep pages out of the page cache
Section titled “Keep pages out of the page cache”Some pages must never be cached. Netkeel always skips these, and you can’t remove them:
- WordPress admin and login
- logged-in users
- POST requests and previews
- WooCommerce cart and checkout
- WooCommerce account and session cookies
To add your own:
- Go to Hosting › Cache.
- Under Custom URL paths, type one path per line, starting with
/, for example/members/. Each path also covers the pages under it. - Click Save exclusions.
You can add up to 50 paths. Query strings and regular expressions aren’t accepted. Netkeel checks the web server configuration before applying the paths, then clears the website’s cache.
Redis object cache
Section titled “Redis object cache”Go to Hosting › Redis. The status chip reads Active, Inactive or Unavailable.
Turn it on or off
Section titled “Turn it on or off”Click the Redis object cache switch. When you turn it on, Netkeel installs the object-cache drop-in for WordPress. Turning it off asks you to confirm Disable Redis; the website keeps working, but dynamic pages may be slower.
Redis is shared by the websites on the server, and each website gets its own key prefix, so websites don’t see each other’s data.
Check the connection
Section titled “Check the connection”While Redis is on, the Connection card shows the live connection details, such as status, socket path and key prefix. Netkeel manages these values. Click Re-check to read them again.
If the Redis Object Cache plugin has been deactivated in WordPress, the report is unavailable. Activate the plugin again under WordPress › Plugins.
Flush the object cache
Section titled “Flush the object cache”Click Flush cache to empty this website’s object cache.
Cache options
Section titled “Cache options”Leave a field empty to use the default, then click Save options:
- Max TTL: the longest any cached item may live, in seconds. Empty means no limit.
- Connection timeout and Read timeout: seconds to wait, from 0.1 to 30.
- Ignored groups: cache groups to keep out of Redis, separated by commas.