wpsharks / comet-cache

An advanced WordPress® caching plugin inspired by simplicity.
https://cometcache.com
GNU General Public License v3.0
77 stars 18 forks source link

Feature Request: New Options Panel for Managing WP Transients #626

Open raamdev opened 8 years ago

raamdev commented 8 years ago

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.
jaswrks commented 8 years ago

Oh, nice mockup!

kristineds commented 8 years ago

:+1:

xberg commented 8 years ago

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

raamdev commented 8 years ago

@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