jetpack
jetpack copied to clipboard
Add "Delete Cache" to the WP Admin Bar
Is there any way you can add a "Delete Cache" button to the WP Admin bar? Thanks.
There is one currently that allows you to delete the cache of the given page you're on. To confirm, are you asking for one that fully deletes the cache of a site?
I am on my site now and I do not see that in the admin bar :(
That button is available but never shown in 99% cases due to a bug... Never saw that button in over 800+ sites done.
+1
Unless I'm mistaken, in order for the "Delete Cache" admin bar button to show up you must have the "Don’t cache pages for known users. (Recommended)" setting box checked (on the Advanced tab, under Miscellaneous). I don't believe it's a bug, but rather just how the plugin is setup.
What @laubsterboy said works great - however I think this button should also be there by default. +1 for OPs suggestion.
Can we have a Delete Cache that actually deletes the cache instantly (all, new and expired) without having to redirect somewhere else first? Eg. like Autoptimize, Ajax based.
Can we have a Delete Cache that actually deletes the cache instantly (all, new and expired) without having to redirect somewhere else girst? Eg. like Autoptimize, Ajax based.
Personally against this. I love WP Super Cache because its simple and elegant as can be. If we start adding things that "make life easier", we're opening pandora's code-bloat box. It's a matter of principle really.
When I'm making something for a client that prefers his own ease of use vs simplicity and elegance, I choose WP Rocket.
Replacing a button that already exists but is not very useful as is, is hardly an extra, but rather a logical upgrade (considering WP Super Cache has been the same, UX-wise, for at least 6 years and WP is now being used by millions more websites and case-uses).
I made my own function in less than 20 lines, not ajax, but at least I'm not wasting time clicking around for no reason (managing dozens of sites a day requires tasks to be as efficient as possible).
Well then, since it's that simple and does not add code bloat, css or js, you can go ahead and make a pull request with your code.
Personally I would upvote that.
Sure I can! @donnchawp @kraftbj would that help?