I am working on a plugin (widget) that is using some transients that are updated from time to time.
That said, when these transients are updated, I think I will need to flush the cache to display the new data properly.
Thus, I wonder if have some way to flush the cache only for widget instead of entire cache. Do you guys have some advice?
if you want to flush the specific cache you can do that: the plugin has functions for that
and you just need to call it like this: