154 articles
Knowledge Base
Performance
154 articles in the Performance category · page 1 of 7.
- Log rotation and disk pressure on cPanel hosts Find and fix the log files that fill the disk on a cPanel server when log rotation stops working. Check which logs are growing, confirm logrotate covers each one, trim the ModSecurity audit log, and add a disk alert before /var runs out of space.
- LSCWP database optimization: cleaning transients, revisions, and bloat Shrink a bloated WordPress database with the LiteSpeed Cache (LSCWP) database optimizer. Measure what takes up space, back up, safely remove old revisions, spam and expired transients (temporary data plugins leave behind), then schedule the cleanup to run every week.
- Setting browser cache headers at vhost or .htaccess on cPanel Set browser cache headers on a cPanel server so returning visitors load your CSS, fonts and images from their own browser instead of downloading them again. It covers the .htaccess and vhost methods, and how to keep a deploy from serving stale files.
- cPanel OpCache settings: size the four that matter Size OpCache on a cPanel ea-php83 or other EasyApache 4 PHP version from live cache statistics, apply the change safely, and recover if PHP-FPM goes down.
- LSAPI vs PHP-FPM on LiteSpeed: which PHP handler to use LSAPI is LiteSpeed's own way of running PHP through lsphp; PHP-FPM is a separate PHP service. Compare the two and see when each one is the right handler.
- opcache.jit explained: tuning OpCache JIT on cPanel PHP 8 opcache.jit sets how PHP 8 compiles code to machine code, and does nothing until jit_buffer_size is above zero. Set and verify it on a cPanel server.
- LSCWP with Cloudflare CDN: cache hierarchy and purge coordination Set up LiteSpeed Cache for WordPress and Cloudflare so the two caches agree. You will set cache lifetimes, keep Cloudflare from caching private pages, and make one purge clear both.
- CDN POP caching — anycast, tiers, and what is actually shared Understand how a CDN decides whether a request is served from cache or sent back to your server. It explains points of presence, tiered caching and origin shields, so you can raise your cache hit rate on purpose.
- LiteSpeed Cache CSS and JS Minify Without Breaking Your Site Turn on LiteSpeed Cache CSS and JS minify, combine and deferred loading one setting at a time, so you keep the speed gain. When a menu or checkout breaks, you find the one file responsible and exclude it instead of switching the feature off.
- LSCWP troubleshooting: white screen, stale pages, and logged-in users seeing cache LSCWP troubleshooting usually comes down to three failures, and each one has its own cause and fix. You will trace a white screen after activation, pages that stay stale after an update, and logged-in users who see cached pages.
- Prometheus recording rules: precompute PromQL so dashboards and alerts stay fast Prometheus recording rules precompute a slow PromQL query on a schedule and store the result as a new series, so dashboards and alerts load fast. You will write and name the rules, load them with rule_files, check them with promtool and choose an evaluation interval.
- Stuck lsphp processes and high CPU on cPanel: how to fix If top or the WHM Process Manager shows lsphp processes piling up, burning CPU or never exiting, you can sort the healthy ones from the stuck ones in a few minutes. Find what each stuck process is waiting on, stop it without taking other sites down, and set a time limit so LiteSpeed clears the next one for you.
- Bandwidth throttling and connection limits on LiteSpeed Learn how to set bandwidth throttling and connection limits on LiteSpeed so one busy site or one abusive visitor cannot slow down the whole server. This guide shows which settings to change and safe starting values for WordPress hosting.
- PHP cURL performance: connection reuse, timeouts, and parallel requests Learn how to make PHP's cURL calls faster and safer. This guide shows you how to reuse connections, set timeouts so a slow API cannot freeze your site, and send several requests in parallel with curl_multi.
- Git partial clone and sparse checkout — making a huge repository workable Learn how to use Git partial clone and sparse checkout so that a huge repository clones quickly and stays quick to work in. You will choose the right clone filter, narrow the working tree with cone-mode sparse checkout, and steer around the background fetches that make git blame crawl.
- Migrating PHP 7.x applications to PHP 8.x: the operator checklist Migrate a production PHP 7 application to PHP 8 without taking the site down. You will scan the code for breaking changes, audit extensions and Composer packages, run PHP 8 in parallel on its own pool, and move live traffic over once your tests pass.
- Measure real network throughput between two hosts with iperf3 Learn how to run an iperf3 throughput test between two hosts, read its results, and tell a faulty network link apart from a TCP setting that is too small. The guide covers parallel streams, reverse tests, UDP mode and JSON output.
- Running WordPress in production on AWS: from EC2+RDS to autoscaling cluster Learn how to grow WordPress on AWS from a single server into a production cluster that adds and removes servers as traffic changes. This guide walks through each stage and shows how to move sessions, uploads, cache and the database off the servers so that losing one of them loses no data.
- Set up zram compressed swap on a memory-constrained Linux server Learn how to set up zram, a compressed swap device kept in RAM, on a Linux server that is short on memory. This guide shows you how to size it, pick a compression algorithm, tune the kernel for it, and measure whether it actually helped.
- Imagick vs GD: which PHP image extension to use, and how to check GD is bundled with PHP, cheap on memory, and fine for resize and crop. Imagick wraps ImageMagick and wins on formats, ICC colour and downscale quality, at a real memory and security cost. Decide between them, then verify what your server and WordPress actually use.
- PHP-FPM Unix socket vs TCP port: which transport, and when it matters On one host a Unix domain socket is the right default for PHP-FPM; across hosts TCP is the only option. The speed gap is tens of microseconds — the failure modes (socket permissions, a full listen backlog, ephemeral port exhaustion) are what actually decide it. Full listen, fastcgi_pass and SetHandler config for both.
- What is a CDN cache? Edge caching explained, and what to cache or bypass A CDN cache is a copy of your origin's response held on an edge server and found by a cache key. What goes into that key, how to pick a TTL for each class of response, and the full cache-or-bypass rule matrix worked through a WordPress and WooCommerce origin.
- LSCWP and WooCommerce: cache the catalog, never the cart Configure LiteSpeed Cache for WordPress on a WooCommerce store so catalog pages are served from cache while cart, checkout, account and the Store API always bypass it.
- LiteSpeed .htaccess compatibility: what works, what does not A practical reference of Apache .htaccess directives and their LiteSpeed equivalents — which are natively supported, which require workarounds, and which are silently ignored.