1. Home
  2. Blog
  3. Performance

Speed Up WordPress on Shared Hosting With Lightify, Step by Step

Performance

October 25, 2026

Shared hosting is where most WordPress sites start, and where most of them stay. It is cheap, it is managed for you, and it shares one server’s CPU, memory and disk with many other accounts. That last part is why a site can be quick at 7am and sluggish at lunchtime without you changing anything.

You cannot buy more server with a plugin. What you can do is make each visit ask much less of the server you have. This guide shows how to speed up WordPress on shared hosting with Lightify, the DaftPlug performance plugin, in the order that gives the most back for the least risk. The Lightify FAQ answers the obvious question directly: yes, it works on shared hosting, and that is where caching helps most. Plugin behavior below comes from the Lightify docs and changelog. General hosting advice is labeled as such.

Why shared hosting feels slow

On an uncached WordPress request, PHP boots WordPress, loads your theme and every active plugin, runs database queries and assembles the HTML. Then it sends the page. On a busy shared server, each of those steps waits its turn behind other accounts.

The Lightify docs name this in the performance guide: if your Time to First Byte is poor even with caching active, the cause is upstream of the plugin, for example shared hosting under load, a distant server or a slow database on uncached requests. The goal on a small server is therefore simple. Serve as many visits as possible without running PHP and the database at all, and make the visits that do run them cheaper.

Step 1: get page caching working, and prove it

Page caching writes the finished HTML of a page to disk, so the next visitor gets a file instead of a database query and a PHP render. The docs call it the largest single improvement Lightify offers. It needs no configuration, but on shared hosting it is also the step most likely to fail quietly.

Lightify needs two writes outside its own folder: a WP_CACHE constant in wp-config.php and an advanced-cache.php drop-in in wp-content. Both files must be writable. If either write fails, everything else still works but pages are not cached.

Check the cache status on the Lightify overview page:

StatusMeaningFix
activeWP_CACHE is set and the drop-in is installedNothing to do
wpconfigThe drop-in is in place but WP_CACHE could not be writtenAdd the constant by hand
dropinadvanced-cache.php could not be writtenMake wp-content writable

Some hosts make wp-config.php read-only on purpose. The docs say that is not a bug to fight. Add this line above the “That’s all, stop editing” comment using your host’s file manager:

define('WP_CACHE', true);

Lightify picks it up on the next admin page load. Then confirm from outside:

curl -sI https://example.com/ | grep -i x-lightify

Shared hosts often run Apache. The docs warn that on Apache without mod_headers, the header is silently skipped even though caching works. If the header is missing, look for cache files under wp-content/cache/lightify/ before deciding anything is broken. Our full walkthrough on checking that your WordPress page cache is really on covers each status in more detail.

Step 2: let the host cache and Lightify work together

Some shared hosts run their own server cache (general hosting knowledge). The Lightify integrations guide lists the hosts it detects and purges automatically, including SiteGround, Cloudways with Breeze, RunCloud, GridPane and sites using Nginx Helper. Running Lightify’s page cache alongside a host cache is normal and correct, the docs say: Lightify caches the HTML, the host caches at the edge, and the integration keeps them in step. These integrations are free and have no settings.

What you should not run is a second caching plugin. The FAQ explains that two plugins writing advanced-cache.php will fight, and which one serves a given request becomes unpredictable. If your host preinstalled a caching plugin of its own, pick one.

Step 3: keep preloading gentle

After a purge, Lightify’s preloading visits your pages in the background, so the first real visitor gets a cached copy instead of paying to build it. It runs with a delay between requests so it does not overwhelm your server.

On a small plan that delay is the setting to know. The Lightify FAQ says to check that PHP execution limits are not too tight for preloading, and to raise the preload delay if preloading strains the server. It is a developer filter, lightify_preload_delay, measured in seconds between requests with a default of 0.5:

add_filter('lightify_preload_delay', function () {
    return 2;
});

You can also narrow what gets warmed with lightify_preload_urls, so a small server builds your homepage, shop and pricing page first rather than every archive.

Lightify 1.4.0 added a cache lifespan with a default of 10 hours. Expired pages are cleared about once an hour and warmed again in the background. Leave that default unless you have a reason. A much shorter lifespan means more rebuilds, and rebuilds are exactly what a shared server is short on.

Step 4: do not spend disk on copies you do not need

Shared plans come with modest disk quotas (general hosting knowledge). Two Lightify cache settings multiply the number of cached files, and both are off by default for good reason:

  • Separate Mobile Cache keeps separate copies for phones. The docs say only to turn it on if your site serves different HTML to phones. A responsive theme does not need it, and enabling it doubles your cache for no benefit.
  • Cache Logged In Users builds cached pages for signed-in visitors. It is valuable on membership sites, but only safe when pages do not show anything personal, and it adds copies.

Recent releases also trim waste for you. The 1.4.0 changelog says requests with unknown query parameters are no longer cached, while tracking parameters still use the normal cached page, and cached pages are sent compressed when the browser accepts gzip. Lightify 1.4.1 stopped a static front page from caching every /page/N/ address.

Step 5: cut what each page asks the browser to download

Once the server is answering from cache, the next wait is the browser downloading and running your theme’s files. These settings are about the visitor’s device rather than your server, but on a slow host every saved request still counts.

Lightify ships the safe ones already on: minified CSS and JavaScript, preloaded fonts, lazy-loaded images, videos and iframes, properly sized images, smart link prefetch, and the emoji, jQuery Migrate and oEmbed removals. The docs’ quickstart then gives an order for the rest, one change at a time with a purge and a check after each:

  1. Minify HTML, on the HTML optimizations section.
  2. Defer JavaScript. The first setting with a real chance of breaking something, usually sliders, tabs or menus. If one breaks, add a fragment of its filename to Exclusions rather than turning defer off.
  3. Remove Unused CSS (Pro). The FAQ calls it usually the largest single win after page caching, because most themes ship one stylesheet for every page. Use CSS Inclusions for menus and modals that open on click.
  4. Delay JavaScript Execution (Pro), for third-party tags such as analytics, chat widgets and ad scripts. Interaction responsiveness is 30% of the score, according to the FAQ.

Keep one habit from the docs: purge everything after every settings change, because existing cached pages were built under the old settings.

Step 6: lighten your images without a separate service

With Pro, Auto Image Optimization converts the images your pages actually use to WebP and swaps them in place. It covers img tags, picture sources, video posters, image preloads and CSS backgrounds.

For a small server the important detail is how it works. Conversion happens progressively as pages are rendered rather than in one pass over your media library, so a large site does not stall. The rate is controlled by lightify_webp_images_per_page, default 50 images per page render, and quality by lightify_webp_quality, default 82. If conversions make page builds slow during the first days, lowering the per-page number spreads the work out.

Then turn on Preload Critical Images (Pro). It finds the largest image above the fold and tells the browser to fetch it immediately, which is the most direct lever on Largest Contentful Paint. Make sure that hero is not also lazy-loaded.

Step 7: quiet the admin

Shared hosting slowdowns are not only a front end problem. The bloat removal docs single out the Heartbeat API: it powers autosave, post locking and live dashboard updates by polling your server from every open admin tab. On shared hosting with several editors, they note, that alone can be a meaningful share of your load.

Throttle Heartbeat (Pro) limits it to once every 60 seconds. Autosave and post lock warnings still work, they just update less often. The docs recommend it on any site with more than one person in the admin.

Two more from the same tab are worth a look:

  • Disable XML-RPC (Pro) switches off an endpoint the docs describe as a common target for brute force and amplification attacks. Leave it on if you use the WordPress mobile app, Jetpack or a remote publishing tool.
  • Remove Dashicons stops loading the admin icon font for visitors, unless your theme uses it for icons on the front end.

Step 8: clean the database, carefully

A smaller database means faster uncached queries, and uncached queries are what a shared server does worst. Lightify Pro’s database optimizations delete post revisions, auto drafts, trashed posts, spam and trashed comments and expired transients, and can reorganize tables.

The docs are emphatic that these deletions are permanent and have no undo. Take a database backup before the first run, do one manual pass and see what it removes, and only then turn on Auto Clean Database (Pro), weekly or monthly. Reorganize tables locks tables while it runs, so schedule it outside busy hours.

A gentler alternative from the FAQ: cap revisions instead of deleting them all. define('WP_POST_REVISIONS', 5); in wp-config.php keeps the five most recent per post.

Step 9: know what a plugin cannot fix

Lightify’s object cache section is informational. It reports whether Redis or Memcached is available and whether an object-cache.php drop-in is installed and working. Many shared plans offer neither. If yours reports No persistent cache backend detected, the honest next step is a conversation with your host, not another setting. A drop-in that is installed but not working is worse than none, because WordPress tries to use it on every request.

The FAQ is equally honest about scores. Lightify controls what WordPress sends. It cannot fix a slow server or a theme that loads six web fonts. Its own score comes from real visitors on your cached homepage, so give it a few days of traffic after these changes rather than refreshing after each one.

The shared hosting setup at a glance

AreaSettingVersion
Page cacheStatus active, header or cache files confirmedFree
PreloadingDefault delay, raised with lightify_preload_delay if neededFree
Cache sizeSeparate Mobile Cache off for responsive themesFree
AssetsMinify HTML, Defer JavaScript with exclusionsFree
AssetsRemove Unused CSS, Delay JavaScript ExecutionPro
ImagesAuto Image Optimization, Preload Critical ImagesPro
AdminThrottle HeartbeatPro
DatabaseBackup, one manual pass, then a schedulePro

Page caching, which is free, does most of the work on a small server. Pro adds unused CSS removal, JavaScript delay, WebP conversion, critical image preloading, Heartbeat throttling and scheduled cleanup. Lightify Pro comes with the DaftPlug membership: one license for Lightify, Progressify, Generatify, Crownify and Snapshotify, from $37.99 a year for one site, with a 14-day money-back guarantee. Compare plans on the DaftPlug pricing page.