{"id":2433,"date":"2023-08-03T04:39:29","date_gmt":"2023-08-03T08:39:29","guid":{"rendered":"https:\/\/www.tracemyip.org\/learn\/?post_type=ht_kb&#038;p=2433"},"modified":"2025-06-09T06:06:05","modified_gmt":"2025-06-09T10:06:05","slug":"litespeed-cache-for-wordpress-and-visitor-tracking-and-analytics-issues","status":"publish","type":"ht_kb","link":"https:\/\/www.tracemyip.org\/learn\/litespeed-cache-for-wordpress-and-visitor-tracking-and-analytics-issues-2433\/","title":{"rendered":"LiteSpeed Cache for WordPress and visitor tracking and analytics issues"},"content":{"rendered":"<p>When LiteSpeed Cache is used with services such as TraceMyIP <a href=\"https:\/\/www.tracemyip.org\/tools\/website-visitors-counter-traffic-tracker-statistics\/\" data-internallinksmanager029f6b8e52c=\"68\" title=\"visitor tracking, visitor IP tracker\">visitor tracking<\/a>, it prevents the scripts from loading in real-time causing the tracking to not work.<\/p>\n<p style=\"padding: 10px 0;\"><strong><a href=\"https:\/\/www.tracemyip.org\/tools\/website-visitors-counter-traffic-tracker-statistics\/index.php?sto=1&amp;refLinkID=WPLearn_tracemyip_signup_link_1\" target=\"_blank\" rel=\"noopener\">\ud83d\udcc8 Sign Up<\/a><\/strong> now to <strong>instantly<\/strong> track <a href=\"https:\/\/www.tracemyip.org\/learn\/how-to-build-a-website-for-visitors-optimization-2814\/\" data-internallinksmanager029f6b8e52c=\"69\" title=\"How to Build a Website for Visitors: Understanding Needs and Optimizing for Success\">website visitors<\/a> IPs!<\/p>\n<h3>Here&#8217;s how to configure the LiteSpeed Cache to exclude TraceMyIP scripts from being cached:<\/h3>\n<p>Before you proceed with the steps below, first <strong><a href=\"https:\/\/www.tracemyip.org\/learn\/blocking-ips-browser-visits-from-appearing-on-reports-1719\/\" target=\"_blank\" rel=\"noopener\">disable own IP blocking<\/a><\/strong> to be able test your visitor tracker.<\/p>\n<ol>\n<li>Navigate to <strong>Litespeed Cache<\/strong> &gt; <strong>Cache<\/strong><\/li>\n<li>Under the <strong>Excludes<\/strong> tab, locate <strong>Do Not Cache URIs<\/strong> input box<\/li>\n<li>Enter <strong>TraceMyIP<\/strong> in the<\/li>\n<li><strong>Do Not Cache URIs <\/strong>input box<\/li>\n<li>Click on the <strong>Cache<\/strong> tab and set the <strong>Enable Cache<\/strong> to <strong>OFF<\/strong> to clear the existing cache<\/li>\n<li>Click on <strong>Save Changes<\/strong> button<\/li>\n<li>Now set the <strong>Enable Cache<\/strong> to <strong>ON<\/strong> save click on the <strong>Save Changes<\/strong> button<\/li>\n<li><a href=\"https:\/\/www.tracemyip.org\/learn\/how-to-check-test-visitor-tracker-424\/\" target=\"_blank\" rel=\"noopener\"><strong>Test your visitor tracker<\/strong><\/a><\/li>\n<\/ol>\n<h3>More information about the LiteSpeed cache plugin<\/h3>\n<p><strong>LiteSpeed Cache for <a href=\"https:\/\/www.tracemyip.org\/learn\/wordpress-visitor-tracking-plugin-1382\/\" data-internallinksmanager029f6b8e52c=\"18\" title=\"WordPress visitor tracking plugin\">WordPress<\/a><\/strong> (LSCWP) is a WordPress caching plugin specifically designed to work with websites hosted on LiteSpeed Web Server.<\/p>\n<p>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:<\/p>\n<p><strong>Server-level Full Page Caching:<\/strong> 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.<\/p>\n<p><strong>Image Optimization:<\/strong> 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.<\/p>\n<p><strong>Browser Cache Support:<\/strong> LSCWP enables the use of browser caching for static resources like images, CSS, and JavaScript files. This allows visitors&#8217; browsers to store these files locally, reducing the need to download them on subsequent visits.<\/p>\n<p><strong>Content Delivery Network (CDN) Integration:<\/strong> LSCWP can be integrated with popular CDNs to distribute static files to servers located worldwide, further improving website performance for users across the globe.<\/p>\n<p><strong>Database Optimization:<\/strong> The plugin includes database optimization features to clean up and optimize the WordPress database, reducing its size and enhancing database performance.<\/p>\n<p><strong>Object Cache:<\/strong> LSCWP supports object caching, which allows frequently used objects or database queries to be stored in memory, improving the efficiency of dynamic content generation.<\/p>\n<p><strong>ESI (Edge Side Includes) Support:<\/strong> LSCWP supports Edge Side Includes, a feature that allows parts of a page to be selectively cached, enabling more efficient handling of dynamic content.<\/p>\n<p>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&#8217;s full potential can be experienced when used with LiteSpeed Web Server.<\/p>\n<p>As with any caching plugin, it is essential to configure LiteSpeed Cache for WordPress correctly based on your specific website&#8217;s needs and your hosting environment. This includes <strong>excluding TraceMyIP scripts<\/strong> from being placed in the cache, which <strong>fixes the issue of the visitor tracking functions not working<\/strong><\/p>\n<p>Additionally, caching plugins work best when combined with other performance optimization techniques like using lightweight themes, minimizing plugins, and leveraging browser caching settings.<\/p>\n<p><strong>\ud83d\udcc4 \ud83d\udd17<\/strong> <a href=\"https:\/\/www.tracemyip.org\/support\/files\/tracemyip-visitor-analytics-ip-tracking-control.zip\"><span style=\"color: #3366ff;\"><strong>Download<\/strong><\/span><\/a> the latest version of WordPress <strong>UnFiltered Stats<\/strong> plugin. To install, <strong>login<\/strong> to <strong>WordPress<\/strong> &gt; Add Plugin &gt; Upload Plugin or download from WP plugin directory.<\/p>\n<p style=\"padding: 10px 0;\"><strong>\ud83c\udf0d Who visits your website?<\/strong> <strong><a href=\"https:\/\/www.tracemyip.org\/tools\/codereg.php?rgtype=4684NR-IPIB&amp;ntc=1&amp;adDj=1&amp;refLinkID=WPLearn_tracemyip_signup_link_2\" target=\"_blank\" rel=\"noopener\">Sign Up<\/a><\/strong> now to find out instantly!<\/p>\n<div style=\"clear:both\"><\/div>","protected":false},"excerpt":{"rendered":"<p>When LiteSpeed Cache is used with services such as visitor tracking, it prevents the scripts from loading in real-time causing the tracking to not work. Here&#8217;s how to configure the LiteSpeed Cache to exclude scripts from being cached: Before you proceed with the steps below, first disable own IP blocking&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[90],"ht-kb-tag":[],"class_list":["post-2433","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/2433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/comments?post=2433"}],"version-history":[{"count":8,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/2433\/revisions"}],"predecessor-version":[{"id":3028,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/2433\/revisions\/3028"}],"wp:attachment":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/media?parent=2433"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-category?post=2433"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-tag?post=2433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}