• Resolved camya

    (@ecc)


    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 4 years, 1 month ago by camya.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    It works fine on my test server/site

    Could you please attach —debug , and post the result ?

    Best regards,

    • This reply was modified 4 years, 1 month ago by qtwrk.
    • This reply was modified 4 years, 1 month ago by qtwrk.
    Thread Starter camya

    (@ecc)

    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
    Thread Starter camya

    (@ecc)

    Hi @qtwrk

    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

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Glad to know you sorted it out 🙂

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP-CLI: “wp litespeed-purge all” returns “Got 404”’ is closed to new replies.