[wp-trac] [WordPress Trac] #24206: Garbage collection for transients stored in the options table
WordPress Trac
noreply at wordpress.org
Sat Apr 27 19:50:36 UTC 2013
#24206: Garbage collection for transients stored in the options table
-------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache | Version: 2.8
Severity: normal | Keywords:
-------------------------+-----------------------------
When there's no persistent object cache in place, WordPress uses the
options table to store transients. We should introduce garbage collection
to avoid stale data sitting around indefinitely.
This should be fairly straight forward to implement. A daily cron schedule
would fetch all options with a key that begin with `_transient_timeout_`
and a value that's less than the current time, then clear all the matching
transients.
Any objections? I'll patch it up if not.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24206>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list