Wordpress LScache Plugin: WP-CLI: wp litespeed-purge all returns Got 404
Last Updated on: Wed, 15 Apr 2026 00:00:02 I use the WP-CLI commands to purge the cache for specific urls using the url parameter (wp litespeed-purge url ? ). Everything works like expected here. Problem with wp litespeed-purge all : Unfortunately I run in an error, if I use the all parameter. It outputs Got 404 . wp litespeed-purge all Error: Something went wrong! Got 404 Cheers, Andreas This topic was modified 2 years, 4 months ago by camya. Hi, It works fine on my test server/site Could you please attach ?debug , and post the result ? Best regards, Our live enviroment runs on a Linux server with a litespeed webserver. wp litespeed-purge url ? The litespeed-purge url command runs just fine. The Debug url looks correct. Debug (bootstrap): Running command: litespeed-purge url (0.968s) Debug: url is https://www.PROJECT-DOMAIN.com/countdown/ (0.977s) Success: Purged the url! wp litespeed-purge all Very strange. Instead of calling some internal function to purge all cached data, the /wp-admin/admin-ajax.php is executed as a HTTP request. Is it not better to not use admin-ajax.php from the commandline in this case? In our case, the /wp-admin/ path is special protected to avoid unallowed access from the frontend. Debug (bootstrap): Running command: litespeed-purge all (1.841s) Debug: URL is https://www.PROJECT-DOMAIN.com/wp-admin/admin-ajax.php (1.841s) Error: Something went wrong! Got 404 Hi @CacheCrawler You can close this ticket, if you want to. This was indeed a problem on our side with our server configuration. The admin-ajax.php was not accessible. I fixed it now and the command works like expected. wp litespeed-purge all Success: Purged All! Sorry for this ticket. Best, Andreas Hi, Glad to know you sorted it out Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference