Skip to main content

How to Configure LiteSpeed Cache for a WordPress Site

You can improve the loading speed and performance of your WordPress site by configuring the LiteSpeed Cache plugin. This procedure is available for WordPress sites hosted on a server that supports LiteSpeed technology.

You can improve the loading speed and performance of your WordPress site by configuring the LiteSpeed Cache plugin. This procedure is available for WordPress sites hosted on a server that supports LiteSpeed technology.

Important: This feature is only available on Hostek plans that include LiteSpeed support.

Before you begin

You will need:

  • Site Administrator access to your WordPress dashboard.

  • A WordPress site hosted on a LiteSpeed-enabled server.

Configuring LiteSpeed Cache

  1. Log in to your WordPress dashboard.

  2. In the left-hand sidebar, navigate to LiteSpeed Cache.

  3. Select Cache from the menu.

  4. Configure the primary caching settings, such as Enable Cache, Cache Emulation, and Guest Mode.

  5. Navigate to Page Optimization in the LiteSpeed menu.

  6. Adjust settings for Minify, Combine, and Load Options to optimize your CSS, JS, and HTML.

  7. Navigate to Object Cache in the LiteSpeed menu.

  8. Enable Object Cache if your server supports Memcached or Redis.

  9. Navigate to Database Optimization in the LiteSpeed menu.

  10. Select Clean up - Database to remove overhead and expired transients.

  11. Click Save Changes at the bottom of each respective page to apply your settings.

Confirm the result

  • The LiteSpeed Cache status indicator in the WordPress toolbar should show a green icon or a "LiteSpeed" label.

  • The "Cache_Status" in your site's header (viewable via a browser extension or the LiteSpeed dashboard) should indicate that the page is being served from the cache.

Troubleshooting

LiteSpeed Cache is not purging after changes

If you update a page but the changes do not appear, the cache may need a manual purge.

  1. Navigate to LiteSpeed Cache > Toolbox.

  2. Select Purge All.

  3. Refresh your website in a private/incognito browser window.

Limitations

  • LiteSpeed Cache features are only available if the underlying server is running the LiteSpeed Web Server.

  • Some advanced features, such as Object Cache, require specific server-side modules (Memcached or Redis) to be enabled on your account.

  • Configuration settings for Page Optimization can vary based on your specific WordPress theme and plugins; it is recommended to test your site's layout after making changes.

Did this answer your question?