comet-cache icon indicating copy to clipboard operation
comet-cache copied to clipboard

Feature Request: New Options Panel for Managing WP Transients

Open raamdev opened this issue 9 years ago • 4 comments

As a continuation of the enhancement that was added in https://github.com/websharks/zencache/issues/459 to allow clearing Expired Transients from the Clear Cache Options Menu in the Admin Bar (Pro version only), we should add a new options panel called "WP Transients" that allows a site owner to manage their WP Transients.

There are entire plugins (see this screenshot) dedicated to managing WP Transients, allowing you to see a list of all the transients and edit/delete them individually, but I propose that we add a new options panel with three buttons to "Delete Expired Transients", "Delete Transients with an Expiration", and "Delete All Transients", along with options for automatically having ZenCache do one of those three things when clicking the "Clear Cache" button. (I wouldn't bother with actually listing Transients and allowing a site owner to delete them selectively--for that we should just recommend a plugin like the one I just linked to).

It would also be nice to have a new ZenCache API call that allows you to run those three commands, so that a site owner could include one when building a Custom Clear Cache Command.

Mockup:

2015-11-27_19-37-20


Quoting @jaswsinc's Next Actions list from #459:

Next Actions

  • [ ] Automatically cleanup expired transients. Enabled by default with an option to turn this off if desirable for some reason. Can't think of one though!
  • [ ] Forcibly delete all transients when the cache is cleared manually. Off by default, but site owners can choose to turn this on. This could negatively impact some plugins in very small ways, but overall this is relatively safe. Transient data is transient. Plugins using the transient API should not expect this data to live forever anyway.

raamdev avatar Nov 28 '15 00:11 raamdev

Oh, nice mockup!

jaswrks avatar Nov 28 '15 00:11 jaswrks

:+1:

kristineds avatar Dec 01 '15 02:12 kristineds

Will this work if I enabled Redis or memcache persistent caching?

xberg avatar Jan 02 '16 10:01 xberg

@xberg This feature has not been created yet, but we'll keep Redis and Memcache in mind when working on this. :-)

Referencing https://github.com/websharks/zencache/issues/47

raamdev avatar Jan 02 '16 17:01 raamdev