verified99.9% Uptime SLA Guaranteed
language
Help Center
← Knowledge Base

Hosting Guides

LiteSpeed Cache Object Caching Optimization with Redis in international hosting locations

How to connect the LiteSpeed Cache WordPress plugin to Redis, diagnose object-cache failures, and distinguish object caching from page caching.

Reviewed 28 October 2026. This guidance applies to WordPress websites using the LiteSpeed Cache for WordPress (LSCWP) plugin with access to a supported external object cache; it is not a claim that Redis or LiteSpeed is present on every Hostlah hosting plan.1. Understand the cachesLSCWP page cache can serve already-generated public pages without WordPress/PHP execution. Redis object caching holds frequently requested database/query objects and is useful when WordPress must build a dynamic response. These are different layers: a page-cache HIT may bypass PHP entirely, so Redis object cache may provide little added benefit for those specific requests.2. Confirm prerequisitesCheck that the hosting plan allows Redis, the Redis service is running, the PHP Redis extension is enabled for the PHP environment executing WordPress, and the site can connect to the endpoint. Avoid exposing Redis on the public internet. Where provider-managed Redis is offered, use its designated credentials/socket/host parameters.3. Configure the pluginIn WordPress, open LiteSpeed Cache > Cache > Object. Select Redis as the method, configure the host (often 127.0.0.1) and port or the provider-supported Unix socket, and test the connection. Set a unique key prefix/database namespace where multiple sites share a Redis service; verify the provider's supported isolation strategy.4. Unix socket or TCP?A Unix-domain socket is local-only and may avoid TCP overhead, but requires appropriate filesystem ownership and permissions. TCP to localhost is widely compatible and straightforward to troubleshoot. Neither connection method is universally faster in a meaningful way without measurement. Remote Redis latency can matter more than transport micro-optimizations.5. WooCommerce considerationsCheckout/cart/account responses are dynamic and must not leak private data via page caching. Use the plugin's documented WooCommerce and exclusion behavior; evaluate ESI capabilities only when supported. Object caching can still help dynamic checkout paths, but verify that customer-specific keys are properly segregated.6. TroubleshootIf object caching shows disconnected, test Redis access and the correct PHP extension, endpoint/port/socket permissions, memory/eviction limits and authentication. Inspect application error logs. Measure cache hit rates and database workload rather than assuming results.Primary sources:https://docs.litespeedtech.com/lscache/lscwp/admin/https://docs.litespeedtech.com/lscache/lscwp/cache/https://docs.litespeedtech.com/lscache/lscwp/beginner/