Closed GaryJones closed 11 years ago
I switched from delete_transient()
because the key will most likely be re-used, but switching back ought to clear out transients for shortcodes that have been changed instead of letting them hang around.
The point of using delete_transient()
, is that it fires different actions and does other stuff, as well as actually deleting a row in a table. There's no harm in deleting a row - WP will just create a new row when needed.
Good point on the hooks that get fired. I didn't think about that.
In
expire_gist_transient()
,set_transient()
is being used with a negative timeframe, instead of the correctdelete_transient()
function.