wp litespeed-purge all returns 403




Wordpress LScache Plugin: wp litespeed-purge all returns 403

Last Updated on: Wed, 15 Apr 2026 00:00:02
Im trying to automatically purge the cache when new code is launched using wp litespeed-purge all but every time I get a 403 error. I suspect its a nonce issue, but I havent been able to confirm that. Below is the output when I add the --debug flag. $ wp litespeed-purge all --debug Debug (bootstrap): Fallback autoloader paths: phar://wp-cli.phar/vendor/autoload.php (0.01s) Debug (bootstrap): Loading detected autoloader: phar://wp-cli.phar/vendor/autoload.php (0.01s) Debug (commands): Adding command: cache (0.014s) Debug (commands): Adding command: transient (0.015s) Debug (commands): Adding command: comment (0.016s) Debug (commands): Adding command: meta in comment Namespace (0.017s) Debug (commands): Adding command: menu (0.018s) Debug (commands): Adding command: item in menu Namespace (0.019s) Debug (commands): Adding command: location in menu Namespace (0.019s) Debug (commands): Deferring command: network meta (0.019s) Debug (commands): Adding command: option (0.02s) Debug (commands): Adding command: post (0.022s) Debug (commands): Adding command: meta in post Namespace (0.023s) Debug (commands): Adding command: term in post Namespace (0.023s) Debug (commands): Adding command: post-type (0.024s) Debug (commands): Adding command: site (0.025s) Debug (commands): Adding command: meta in site Namespace (0.025s) Debug (commands): Adding command: option in site Namespace (0.026s) Debug (commands): Adding command: taxonomy (0.026s) Debug (commands): Adding command: term (0.028s) Debug (commands): Adding command: meta in term Namespace (0.028s) Debug (commands): Adding command: user (0.03s) Debug (commands): Adding command: meta in user Namespace (0.031s) Debug (commands): Adding command: session in user Namespace (0.031s) Debug (commands): Adding command: term in user Namespace (0.031s) Debug (commands): Adding command: network (0.032s) Debug (hooks): Processing hook after_add_command:network with 1 callbacks (0.032s) Debug (hooks): On hook after_add_command:network : Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php at line 634 (0.032s) Debug (commands): Adding command: meta in network Namespace (0.032s) Debug (commands): Adding command: db (0.036s) Debug (commands): Adding command: plugin (0.04s) Debug (commands): Adding command: theme (0.041s) Debug (commands): Adding command: mod in theme Namespace (0.042s) Debug (commands): Adding command: scaffold (0.044s) Debug (commands): Adding command: core (0.044s) Debug (commands): Adding command: verify-checksums in core Namespace (0.045s) Debug (commands): Adding command: verify-checksums in plugin Namespace (0.045s) Debug (commands): Adding command: export (0.046s) Debug (commands): Adding command: config (0.048s) Debug (commands): Adding command: core (0.051s) Debug (commands): Adding command: eval (0.051s) Debug (commands): Adding command: eval-file (0.051s) Debug (commands): Adding command: import (0.052s) Debug (commands): Adding command: media (0.054s) Debug (commands): Adding command: package (0.056s) Debug (commands): Adding command: cron (0.056s) Debug (commands): Adding command: event in cron Namespace (0.057s) Debug (commands): Adding command: schedule in cron Namespace (0.058s) Debug (commands): Adding command: embed (0.058s) Debug (commands): Adding command: fetch in embed Namespace (0.059s) Debug (commands): Adding command: provider in embed Namespace (0.059s) Debug (commands): Adding command: handler in embed Namespace (0.059s) Debug (commands): Adding command: cache in embed Namespace (0.06s) Debug (commands): Adding command: i18n (0.06s) Debug (commands): Adding command: make-pot in i18n Namespace (0.061s) Debug (commands): Adding command: make-json in i18n Namespace (0.062s) Debug (commands): Deferring command: language core (0.063s) Debug (commands): Deferring command: language plugin (0.063s) Debug (commands): Deferring command: language theme (0.063s) Debug (hooks): Immediately invoking on passed hook after_add_command:site : Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/language-command/language-command.php at line 39 (0.063s) Debug (commands): Adding command: switch-language in site Namespace (0.064s) Debug (commands): Adding command: language (0.064s) Debug (hooks): Processing hook after_add_command:language with 3 callbacks (0.064s) Debug (hooks): On hook after_add_command:language : Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php at line 634 (0.064s) Debug (commands): Adding command: core in language Namespace (0.064s) Debug (hooks): On hook after_add_command:language : Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php at line 634 (0.064s) Debug (commands): Adding command: plugin in language Namespace (0.064s) Debug (hooks): On hook after_add_command:language : Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php at line 634 (0.064s) Debug (commands): Adding command: theme in language Namespace (0.065s) Debug (commands): Adding command: maintenance-mode (0.065s) Debug (commands): Adding command: rewrite (0.066s) Debug (commands): Adding command: rewrite (0.066s) Debug (commands): Adding command: cap (0.067s) Debug (commands): Adding command: role (0.067s) Debug (commands): Adding command: search-replace (0.069s) Debug (commands): Adding command: server (0.07s) Debug (commands): Adding command: shell (0.07s) Debug (commands): Adding command: super-admin (0.07s) Debug (commands): Adding command: widget (0.071s) Debug (commands): Adding command: sidebar (0.072s) Debug (bootstrap): Adding framework command: phar://wp-cli.phar/vendor/wp-cli/wp-cli/php/commands/cli.php (0.072s) Debug (commands): Adding command: cli (0.074s) Debug (commands): Adding command: cache in cli Namespace (0.074s) Debug (commands): Adding command: alias in cli Namespace (0.074s) Debug (bootstrap): Adding framework command: phar://wp-cli.phar/vendor/wp-cli/wp-cli/php/commands/help.php (0.074s) Debug (commands): Adding command: help (0.075s) Debug (bootstrap): No readable global config found (0.075s) Debug (bootstrap): No project config found (0.075s) Debug (bootstrap): argv: /usr/local/bin/wp litespeed-purge all --debug (0.075s) Debug (bootstrap): ABSPATH defined: /home/alaskaseafood/public_html/stg/ (0.075s) Debug (bootstrap): Begin WordPress load (0.076s) Debug (bootstrap): wp-config.php path: /home/alaskaseafood/public_html/stg/wp-config.php (0.076s) Debug (commands): Deferring command: pantheon session (0.301s) Debug (commands): Adding command: akismet (0.327s) Debug (commands): Adding command: imsanity (0.342s) Debug (commands): Adding command: litespeed-option (0.344s) Debug (commands): Adding command: litespeed-purge (0.345s) Debug (commands): Adding command: litespeed-online (0.345s) Debug (commands): Adding command: litespeed-image (0.345s) Debug (commands): Adding command: litespeed-debug (0.346s) Debug (commandfactory): No doc comment for timber. (0.373s) Debug (commands): Adding command: timber (0.373s) Debug (commands): Adding command: redirection (0.395s) Debug (commands): Adding command: sitka (0.408s) Debug (commands): Adding command: yoast (0.444s) Debug (commandfactory): No doc comment for event-aggregator. (0.49s) Debug (commands): Adding command: event-aggregator (0.491s) Debug (commandfactory): No doc comment for publishpress-notifications. (0.834s) Debug (commands): Adding command: publishpress-notifications (0.834s) Debug (bootstrap): Loaded WordPress (0.954s) Debug (hooks): Processing hook before_run_command with 1 callbacks (0.954s) Debug (hooks): On hook before_run_command : WP_CLI Bootstrap RegisterDeferredCommands->add_deferred_commands() (0.954s) Debug (bootstrap): Adding deferred command: pantheon session (parent: pantheon, callable: string, args: is_deferred :true ) (0.954s) Debug (commands): Adding empty container for deferred command: pantheon session (0.954s) Debug (commands): Adding command: session in pantheon Namespace (0.954s) Debug (bootstrap): Running command: litespeed-purge all (0.954s) Debug: URL is https://[tld-redacted]/wp-admin/admin-ajax.php (0.955s) Error: Something went wrong! Got 403 Expand , Hi, please check server log , it should log the reason for 403 error do you have some kind of security measure that restrict access for admin-ajax.php though ? Best regards, , Hi, Im going to mark this topic ?Resolved?, due to lack of activity. If you still need help, please submit a ticket in our system we will investigate it further. Best regards, ]



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



Reference