Introduction
The main difference between a slow WordPress site that struggles to load and an ultra-fast one is optimisation. It is not just a question of hosting power: it is mainly a question of the right settings. A well-configured site performs much better, is smoother for your visitors, is more stable and can handle traffic spikes much more easily without breaking down.
With N0C hosting, you have access to very powerful tools such as LiteSpeed, Memcached and Redis. By following the steps below, you will be able to clean up your database and enable the right options to transform the performance of your site.
Prerequisites
To complete these steps more quickly, we recommend that you set up your working environment by opening the following tools in separate tabs in your web browser:
- N0C Manager. Log in to your management interface at https://mg.n0c.com/.
- phpMyAdmin. Open the tool in a new tab via N0C -> Databases -> phpMyAdmin.
- WordPress dashboard. Access your admin panel (wp-admin) using the quick login button in N0C -> CMS/Applications -> N0C WP -> Log in.
Before You Begin: Backup
Before making any changes to your website, it is essential to carry out a full backup. Although it is possible to do this via the command line (using mysqldump for the database and tar for the files), there are much simpler methods available via the N0C interface:
- Export the database. Go to the phpMyAdmin tab you opened earlier, select your database and use the Export function.
- Backup the files. In N0C’s File Manager, right-click on the folder containing your website and click on Create archive.
Once these two elements are secure, you can carry out the optimisations with peace of mind.
Recommended Optimisations
In this article, we will look at the different steps you can take to speed up your WordPress site:
- Update WordPress, plugins and PHP.
- Enable OPcache.
- Install the LiteSpeed Cache plugin.
- Configure the LiteSpeed Cache plugin (LSCache).
- Enable Redis or Memcached for object caching.
- Check and convert all MariaDB tables to InnoDB.
- Optimise the database.
- Replace wp-cron with a system cron job.
- Set up a CDN.
- Minify static files (images/CSS/JS).
In the following paragraphs, we explain how to implement each of these optimisations.
Updating WordPress, Plugins and PHP
It is essential to keep your WordPress installation, plugins and PHP version up to date to benefit from the latest security and speed improvements. For example, upgrading from PHP 7.4 to PHP 8.x can deliver a performance boost of up to 20 % to 40 % (depending on your configuration), whilst protecting your site against recent vulnerabilities.
Before changing the PHP version in your N0C interface, simply ensure that your theme and plugins are compatible with the chosen version.
You can update them via the following menus:
- WordPress and plugins. Check in the WordPress dashboard -> Updates to ensure everything is up to date.
- PHP. You can select one of the PHP versions available on your hosting account via N0C -> Languages -> PHP.
You will find a documentation page on the WordPress website regarding compatibility between WordPress and PHP.
Enable OPcache
Enabling OPcache significantly improves your website’s responsiveness by storing pre-compiled PHP scripts in the server’s memory, thereby avoiding the need to reload them with every visit. This is an essential step in reducing the CPU load on your hosting account.
You can enable it directly from the N0C -> Languages -> PHP menu. In the list of extensions, simply tick the OPCACHE box, then do not forget to click the Save button at the bottom of the page to confirm the change.
Install the LiteSpeed Cache Plugin
To install the plugin, go to your WordPress dashboard and select Plugins -> Add Plugin. Simply search for “LiteSpeed Cache”, click Install Now, then click Activate. Once activated, a new “LiteSpeed Cache” menu will appear in your sidebar, allowing you to manage all the optimisation features directly from your WordPress dashboard.
Configuring The LiteSpeed Cache (LSCache) Plugin
For most websites, a good starting point – which is normally safe – is to set up a LiteSpeed “Preset”.
In your WordPress dashboard, go to LiteSpeed Cache -> Presets. The Advanced preset is often an excellent starting point: it automatically configures appropriate cache settings, image optimisation and asset minification.
You can then explore the plugin’s menus to fine-tune the many available settings, but that is beyond the scope of this article. The Advanced preset already offers a significant performance boost for the majority of users.
Enable Redis Or Memcached For The Object Cache
The object cache significantly reduces the workload on the database by keeping the results of frequently run queries in memory. To benefit from this, you need to enable and configure it in three places:
- In N0C. Go to Performance -> Redis (or Memcached) and activate it. Make a note of the Path and Port displayed.
- In N0C -> Languages -> PHP. Tick the relevant PHP extension (Redis or Memcached), then click Save at the bottom of the page.
- In WordPress. In the LiteSpeed Cache plugin, go to the Cache -> [6] Object section. Enable object caching, select your chosen method (Redis or Memcached) and enter the path and port provided earlier in N0C.
For further details, you can consult the documentation on object caching in WordPress (please see the article How to Enable Memcached or Redis on WordPress with LiteSpeed Cache).
Check and Convert All MariaDB Tables To InnoDB
InnoDB is the table engine recommended by WordPress and the majority of modern CMSs. Unlike the older MyISAM engine, which can cause a site to “freeze” by locking an entire table when a change is made (Table Lock), InnoDB uses row-level locking. This means that multiple users can interact with the database at the same time without slowing others down, which is crucial for staying online during massive traffic spikes.
You can easily convert your tables directly within WordPress using LiteSpeed:
- Go to LiteSpeed Cache -> Database.
- Go to the Database Table Engine Converter section.
- In this menu, you will be able to see which tables are still using MyISAM and click the Convert to InnoDB button.
This is a crucial step in making your database more robust, faster and better protected against integrity errors.
Optimise The Database
A cluttered database unnecessarily slows down your website’s performance. It all starts with regular cleaning to remove unnecessary items (such as old post revisions or unwanted comments).
In WordPress, go to LiteSpeed Cache -> Database and use the Clean All button. This allows you to instantly reduce the size of your database and improve its responsiveness with a single click.
It is important to note that optimisation is not always sufficient for very large websites or those receiving a huge number of visitors. It may be necessary to add advanced indexes (beyond those provided by WordPress) to speed up data retrieval.
If your site remains slow after these steps, a webmaster can carry out a more in-depth analysis of “slow queries” or use tools such as MariaDB Tuner to fine-tune the settings.
Replace wp-cron With A System Cron Job
The wp-cron is WordPress’s built-in task scheduler (scheduled posts, database clean-ups, etc.). By default, it runs every time a visitor loads a page. On a high-traffic site, this can trigger thousands of executions per hour, placing an unnecessary “burden” on your server’s resources.
To improve stability and reduce the load, we recommend disabling the native functionality and replacing it with a scheduled task (cron) in N0C:
- Disable the internal wp-cron. Add the following line to your
wp-config.phpfile:define(“DISABLE_WP_CRON”, true);. - Create a cron job in N0C. Go to N0C -> Crons and set it to run every 5 or 10 minutes.
- Use a robust command. To prevent multiple processes from running simultaneously if a task takes a long time, use flock and wp-cli with the following command if the site is in
public_html:
/usr/bin/flock -n /tmp/wpcron.lock /usr/local/bin/wp cron event run --due-now --path=$HOME/public_html &> /dev/nullUseful Documentation:
- Hooking WP-Cron into the System (WordPress.org).
- Using WP-CLI on N0C (please see the article How to Manage WordPress in CLI with wp-cli).
- Managing Cron Jobs in N0C (please see the article How to Manage Cron Tasks and Associated Emails).
Set Up A CDN
There are several options available for placing your WordPress site behind a CDN (Content Delivery Network). A CDN adds a caching layer upstream of your hosting by distributing your content across servers located around the world. This reduces the load on your main server and significantly improves response times for your visitors.
Two options are normally preferred for WordPress:
- QUIC.cloud. This service offers seamless integration with the LiteSpeed plugin. In particular, it allows image optimisation and cache generation to be offloaded to their servers, thereby freeing up resources on your N0C hosting.
- Cloudflare. Although it is less “natively” integrated with LiteSpeed’s internal functions, Cloudflare is a more advanced solution for DDoS protection, geofencing (country-based blocking) and advanced cache management at DNS level.
Each solution has its own advantages depending on your security or image optimisation requirements. For further details, please see the article How to Install and Configure CloudFlare for a WordPress Site in the knowledge base.
Minify Static Files (Images/CSS/JS)
In theory, if you have used LiteSpeed’s Advanced Preset, asset minification (images, CSS and JS) is already configured. However, there are other options available to take optimisation a step further.
By adding a QUIC.cloud API key, you can offload image optimisation to their servers. This allows you to generate WebP format or even AVIF (available with a paid account), which is a more modern and lightweight format than WebP. The options for code can be found in the Page Optimisation menu, whilst image processing is managed in Image Optimisation.
Conclusion
By following these steps, you have transformed your WordPress installation into an optimised, stable platform capable of handling significant traffic spikes. From activating LiteSpeed to setting up a system cron job, each adjustment helps to reduce the load on your N0C hosting whilst providing your visitors with instant page loading.
Optimisation is not a one-off task, but a good habit: keep your plugins up to date, regularly monitor the health of your database and make the most of the powerful native tools in your N0C infrastructure to ensure your site continues to perform at its best.


