[wp-trac] [WordPress Trac] #16658: Reverse expiry check for wp_cache functions
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 25 09:54:54 UTC 2011
#16658: Reverse expiry check for wp_cache functions
-------------------------+-----------------------------
Reporter: akshay_raje | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache | Version:
Severity: normal | Keywords: 2nd-opinion
-------------------------+-----------------------------
The basic idea is that expiry details are not stored within the cache at
all. Expiry is rather a part of the 'get' call. The idea is that cached
data is stored with a timestamp instead of expiry. In short, the get
function (wp_cache_get) will validate is the cache has expired or not
using the timestamp set by the add / set function.
This will give access (if needed) to expired cache too.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16658>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list