Skip to main content
Your website runs on OpenLiteSpeed, a fast web server, so it’s quick out of the box. These settings make it faster still, especially for WordPress and other PHP websites.

Difficulty

Intermediate

Time

10 minutes

Quick checklist


Opcode caching

Opcode caching keeps your PHP code ready to run in memory, so it doesn’t have to be prepared again on every visit. It’s on by default and there’s normally no reason to turn it off.
1

Open Optimisation

Go to Websites, click your website, then open Advanced → Optimisation.
2

Check the Opcode caching toggle

The toggle should be on (blue).
Optimisation page with the Opcode caching toggle switched on and the text: This tool will cache the compiled operation code (opcodes) of php scripts to serve your website content

Opcode caching is on

If you change a PHP file and the change doesn’t show, it’s rarely the opcode cache, but you can clear everything by restarting PHP: Advanced → Developer tools → Restart on the PHP card.

Use a recent PHP version

Newer PHP versions run noticeably faster. Versions marked LTS are a safe choice for most websites. See How to Change Your PHP Version.

WordPress: LiteSpeed Cache

When you install WordPress from the Apps tab, the LiteSpeed Cache plugin is installed and activated for you. It stores ready-made copies of your pages so they load almost instantly.
  • Check it in the WordPress Toolkit under Plugins: it should show as active.
  • Change its settings in WordPress under LiteSpeed Cache in the admin menu.
  • Don’t install a second caching plugin (such as WP Super Cache or W3 Total Cache) alongside it.

Redis object cache

Redis keeps the results of database queries in memory. It helps busy WordPress sites, online shops and other database-heavy applications.
1

Open Developer tools

Go to your website, then open Advanced → Developer tools and scroll to Redis.
2

Turn Redis on

Click the toggle. You’ll see Redis enabled.
Developer tools page showing the Cron jobs list, an IonCube loader toggle, and a Redis toggle switched on with its connection details

Redis and IonCube loader in Developer tools

3

Connect your application

Redis runs inside your website’s container. Use these details in your plugin or app:For WordPress, open LiteSpeed Cache → Cache → Object in the WordPress admin, choose Redis, enter the host and port, and save.
You can set a Redis password in the redis.conf file in your website’s home directory (open it with the File Manager). Redis writes its log to redis.log in the same folder.

Other tips

  • Compress and resize images before uploading them.
  • Remove WordPress plugins and themes you don’t use. You can do this in the WordPress Toolkit.
  • Keep WordPress, plugins and themes up to date.
  • Use Cloudflare if many of your visitors are far from your server.

Troubleshooting

Clear the cache in LiteSpeed Cache → Toolbox → Purge All in WordPress, then refresh your browser. If you edited PHP files directly, restart PHP from Developer tools.
Make sure the Redis toggle is on in Developer tools, and that the host is 127.0.0.1 and port 6379. If you set a password in redis.conf, enter it in the plugin too. If it still won’t connect, try turning the toggle off and on again.
Page caching doesn’t apply to logged-in WordPress users. Turning on Redis helps here.

Need Extra Help?

If you encounter any issues, our support team is ready to assist:

Save on Your Hosting

Ready to upgrade your hosting? Use code KB20 at checkout for 20% off your first order!

Last Updated: October 2026