• Resolved Imagehirngesicht

    (@hirngesicht)


    Hello! I wish we could manually regenerate the entire cache. I’ve thought of two ways to do this:

    1. Take inspiration from Ahrefs SEO. Their audit only works when the settings menu is open, and it audits at a steady pace only while said settings menu is open. I think that by letting the user choose a limit (maybe 10 per minute?) most of the issues with regenerating everything at once would go away. So no unintentional DDoS of the server
    2. Add an option flush the entire cache instead of deleting it. That way, it will refresh automatically when a user uses said API and the cron script will do the rest

    Hopefully you can implement one of these. Number 2 seems to be the easiest.
    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ImageRichard Korthuis

    (@rockfire)

    Hi @hirngesicht

    Thank you for using our plugin!

    Option 2 is in fact already possible. If you visit Settings > WP REST Cache > Tab “Clear Caches”: Here you can choose to clear the REST Cache, only if you check the “Delete all caches” checkbox will all caches be deleted, leaving it unchecked will flush the caches.
    So leave the checkbox unchecked and make sure you have “Enable cache regeneration” checked on the tab Settings and the cron will refresh them automatically.

    Thread Starter Imagehirngesicht

    (@hirngesicht)

    Well I be damned. It was right there all along. I thought “Delete all Caches” was simply a confirmation box for the button!

    Well then I’m happy! Maybe you should change the text on the button or something to match what happens when you click it? “Flush cache” vs “Delete cache” maybe? Just a suggestion to clarify things.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Feature request] Allow users to manually regenerate cache’ is closed to new replies.