• Resolved andyphillips82

    (@andyphillips82)


    Curious, is there any thought of adding a ‘flush cache’ option to the object cache that would delete the keys for a specific page. It would be a handy feature.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dion Hulse

    (@dd32)

    Meta Developer

    Unfortunately that kind of functionality should be required to be added by the object caches themselves.
    There’s no hooks or filters in the cache api to allow debug bar to do it itself, we can only look at the stats after the fact.

    Thread Starter andyphillips82

    (@andyphillips82)

    You’ve gathered the list of transients used on that page.

    Could you not in theory create a button that when clicked, loops through the list of those transients and uses the delete_transient WP function?

    Thread Starter andyphillips82

    (@andyphillips82)

    Created a plugin that works in conjunction with debug bar. Sort of hacky, but gets the job done.

    https://github.com/andyphillips82/wp-page-transient-flush

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Delete page specific object cache’ is closed to new replies.