mathetos / my-plugin-info-widget

A widget for displaying WordPress plugin info from the WordPress Plugin Directory
GNU General Public License v2.0
5 stars 1 forks source link

Clear the API cache every time the widget is saved #4

Closed mathetos closed 7 years ago

mathetos commented 8 years ago

But since the data is saved in a transient (per #3) we need to be able to easily delete the cache particularly if you change the slug of the widget.

Ideally, the transient would clear every time you saved the widget, but there doesn't seem to be an obvious hook for doing that.