[wp-trac] [WordPress Trac] #19564: Helper function for getting/setting cache data
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 15 15:02:10 UTC 2011
#19564: Helper function for getting/setting cache data
-----------------------------+-----------------------------
Reporter: johnjamesjacoby | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache | Version: 3.3
Severity: normal | Keywords: has-patch
-----------------------------+-----------------------------
Most of the time when we want something from the object cache we go
through a routine of: wp_cache_get(); checking a result; setting a
default; setting the cache with wp_cache_set(); returning. Core should
offer a neat way to do this all in one fell-swoop.
Attached patch is a proposed solution.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19564>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list