I noticed that some transients on my site every now and then go from having an expiration date to "Does Not Expire". I have noticed this happening with some plugins (eg Gravity Forms) but also happening to transients I created. Any ideas?
UPDATE: I am not sure how Gravity Forms sets and retrieves their transients but I was just using the examples from the codex
//Set transient name based on post tags being used
$transient = 'rest-posts-' . md5(serialize($tags));
if (false === ($data = get_transient($transient))) {
//Run query here and then set transient
set_transient($transient, $data,24 * HOUR_IN_SECONDS);
}
This works... meaning, if no valid transient then it will create one. However, every now and then I see the data is not updating, and so I check all my transients and noticed that some changed status to "Does Not Expire". No new transients are created once the current ones are set to "Does Not Expire". I am using a transient plugin to manage all transients. So once I delete the transients with "Does Not Expire" status, then new ones are created just fine.