jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Add "Delete Cache" to the WP Admin Bar

Open JamesGeiger opened this issue 9 years ago • 11 comments

Is there any way you can add a "Delete Cache" button to the WP Admin bar? Thanks.

JamesGeiger avatar Jun 13 '15 17:06 JamesGeiger

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?

kraftbj avatar Jun 15 '15 17:06 kraftbj

I am on my site now and I do not see that in the admin bar :(

JamesGeiger avatar Jul 02 '15 03:07 JamesGeiger

That button is available but never shown in 99% cases due to a bug... Never saw that button in over 800+ sites done.

marcomarsala avatar Oct 19 '16 08:10 marcomarsala

+1

artursopelnik avatar Sep 20 '17 09:09 artursopelnik

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.

laubsterboy avatar Sep 29 '17 16:09 laubsterboy

What @laubsterboy said works great - however I think this button should also be there by default. +1 for OPs suggestion.

psteinweber avatar Feb 03 '18 13:02 psteinweber

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.

Jany-M avatar May 13 '20 16:05 Jany-M

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.

stathis avatar May 13 '20 17:05 stathis

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).

Jany-M avatar May 13 '20 17:05 Jany-M

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.

stathis avatar May 13 '20 20:05 stathis

Sure I can! @donnchawp @kraftbj would that help?

Jany-M avatar May 13 '20 20:05 Jany-M