Skip to content

Caching and Redis

Netkeel speeds up WordPress 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.

After changing content or design, clear the cache so visitors see the new version:

  • At the top of the application’s page, open More and choose Purge cache.

The panel says “Cache of example.com purged. Visitors get fresh pages again.” when it is done.

Go to Settings › PHP and set Page cache to Enabled or No page cache. The change applies straight away. This option appears when the application’s server supports it.

Some pages must never be cached. Netkeel always skips these, and you can’t remove them:

  • WordPress admin, login and REST API
  • logged-in users
  • POST requests and previews
  • WooCommerce cart and checkout
  • WooCommerce, Easy Digital Downloads and session cookies

Running a shop? See WooCommerce shops.

To add your own:

  1. Go to WordPress › Page cache.
  2. Under Custom URL paths, type one path per line, starting with /, for example /members/. Each path also covers the pages under it, in any letter case; / covers every page.
  3. Under Cookies, type one cookie name per line, for a plugin that keeps a visitor’s cart or session in its own cookie. A visitor whose cookie name starts with one of these always gets a fresh page.
  4. Click Save exclusions.

You can add up to 50 paths and 20 cookie names. Query strings and regular expressions aren’t accepted. Netkeel checks the web server configuration before applying the paths and cookies, then clears the application’s cache.

Go to Settings › Redis. Next to Object cache, the status reads On, Off or Unavailable. Unavailable means the server has not reported the application’s Redis state yet; click Check again in a moment.

Click the switch next to Object cache. When you turn it on, Netkeel installs the Redis Object Cache plugin and its drop-in (wp-content/object-cache.php) and checks the connection. Turning it off asks you to confirm with Turn off Redis; the application keeps working, but dynamic pages may be slower.

Only one plugin can own object-cache.php. If another plugin’s object cache is installed, such as Object Cache Pro, W3 Total Cache, LiteSpeed Cache or one from an earlier host, the page says so and the switch is locked. Turn off that plugin’s object cache first.

Redis is shared by the applications on the server, and each application gets its own key prefix, so applications don’t see each other’s data.

While Redis is on, the page shows the connection and drop-in status, the Redis version, Memory used (shared by the applications on the server), Keys (this application’s cache) and Hit rate (all applications, since Redis started). Click Check again to read them again.

The Connection card shows the live connection details, such as status, socket path and key prefix. Netkeel manages these values.

If the Redis Object Cache plugin has been deactivated in WordPress, the report is unavailable. Activate the plugin again under WordPress › Plugins.

While Redis is on, click Flush cache and confirm to empty this application’s object cache. Other applications on the server keep theirs. Flushing never loses content: pages are a little slower until the cache fills again.

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.