trackmyip
  1. Home
  2. Troubleshooting
  3. LiteSpeed Cache for WordPress and visitor tracking and analytics issues

LiteSpeed Cache for WordPress and visitor tracking and analytics issues

Category

When LiteSpeed Cache is used with services such as TraceMyIP visitor tracking, it prevents the scripts from loading in real-time causing the tracking to not work.

Sign up to instantly track website visitors IPs!

Here’s how to configure the LiteSpeed Cache to exclude TraceMyIP scripts from being cached:

Before you proceed with the steps below, first disable own IP blocking to be able test your visitor tracker.

  1. Navigate to Litespeed Cache > Cache
  2. Under the Excludes tab, locate Do Not Cache URIs input box
  3. Enter TraceMyIP in the
  4. Do Not Cache URIs input box
  5. Click on the Cache tab and set the Enable Cache to OFF to clear the existing cache
  6. Click on Save Changes button
  7. Now set the Enable Cache to ON save click on the Save Changes button
  8. Test your visitor tracker

More information about the LiteSpeed cache plugin

LiteSpeed Cache for WordPress (LSCWP) is a WordPress caching plugin specifically designed to work with websites hosted on LiteSpeed Web Server.

LSCWP offers advanced caching features and optimization techniques to significantly improve the performance of WordPress sites. Some key features of LiteSpeed Cache for WordPress include:

Server-level Full Page Caching: LSCWP implements full-page caching at the server level, generating static HTML versions of WordPress pages and serving them to visitors. This caching mechanism reduces the need for PHP processing and database queries, leading to faster page load times.

Image Optimization: The plugin can automatically optimize images by compressing them without sacrificing quality. This helps reduce the size of image files and improves page load speed.

Browser Cache Support: LSCWP enables the use of browser caching for static resources like images, CSS, and JavaScript files. This allows visitors’ browsers to store these files locally, reducing the need to download them on subsequent visits.

Content Delivery Network (CDN) Integration: LSCWP can be integrated with popular CDNs to distribute static files to servers located worldwide, further improving website performance for users across the globe.

Database Optimization: The plugin includes database optimization features to clean up and optimize the WordPress database, reducing its size and enhancing database performance.

Object Cache: LSCWP supports object caching, which allows frequently used objects or database queries to be stored in memory, improving the efficiency of dynamic content generation.

ESI (Edge Side Includes) Support: LSCWP supports Edge Side Includes, a feature that allows parts of a page to be selectively cached, enabling more efficient handling of dynamic content.

Note that LiteSpeed Cache for WordPress is specifically optimized for LiteSpeed Web Server environments. While some features might work in other hosting environments, the plugin’s full potential can be experienced when used with LiteSpeed Web Server.

As with any caching plugin, it is essential to configure LiteSpeed Cache for WordPress correctly based on your specific website’s needs and your hosting environment. This includes excluding TraceMyIP scripts from being placed in the cache, which fixes the issue of the visitor tracking functions not working

Additionally, caching plugins work best when combined with other performance optimization techniques like using lightweight themes, minimizing plugins, and leveraging browser caching settings.

Who visits your website? Sign up to find out!

Was this article helpful?

Related Articles