• Resolved SuperfeinCreative

    (@superfeincreative)


    Is it possible to bust the Cache Enabler cache via wp-cli commands? If I have SSH access to my website, can I use a command like wp cache flush to bust the cache? Or do I always need to manually do it while logged in as an admin?

    Is there any command line access to this plugin’s cache, so it can be busted remotely?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Example of the current WP-CLI command support in Cache Enabler.

    * Clear all pages cache.
    wp cache-enabler clear

    * Clear the page cache for post IDs 1, 2, and 3.
    wp cache-enabler clear --ids=1,2,3

    * Clear the page cache for a particular URL.
    wp cache-enabler clear --urls=https://example.com/about-us

    * Clear all pages cache for sites with blog IDs 1, 2, and 3.
    wp cache-enabler clear --sites=1,2,3

    The cache flush WP-CLI command will only clear the object cache.
    wp cache flush

    • This reply was modified 3 years, 4 months ago by Luke Cavanagh.
    • This reply was modified 3 years, 4 months ago by Luke Cavanagh. Reason: clarify wording
    Thread Starter SuperfeinCreative

    (@superfeincreative)

    Thanks @lukefiretoss, exactly what I needed!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clear the cache via wp-cli’ is closed to new replies.