Automatically Delete Cache




Wordpress LScache Plugin: Automatically Delete Cache

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I need delete cache automatically every one week, let me know how can I do it? thank you Ramesh. This topic was modified 6 months, 3 weeks ago by Jan Dembowski. The entire cache or only the cache generated by cache plugin? Hi I need to delete automatically (once a week) cache generated by cache plugin. thank you. 1. Create a blank PHP file and copy code below in this file. 2. Place this file in root directory of your WP installation. 3. Setup a cron with weekly interval header(X-LiteSpeed-Cache-Control: no-cache) $tag = __DIR__ . /wp-content/plugins/litespeed-cache/ $tag = substr(md5($tag), -3) . _ header( X-LiteSpeed-Purge: . $tag)



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference