Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

locph on "Wordpress deleted un-expired transient after post editing"

$
0
0

I set up some transients (expired in 1 day) to save query results on a custom post type (e.g Class). Then, if I go to update any kind of post or user profile, my transients was cleared.

My question is how can I prevent that behavior? I just want to clear them if and only if I've updated a Class post (using the hook publish_post) or they was expired.

Thanks for your help.


Viewing all articles
Browse latest Browse all 8245

Trending Articles