[wp-trac] [WordPress Trac] #31618: Filter wp_cache_get return
WordPress Trac
noreply at wordpress.org
Fri Mar 13 00:26:45 UTC 2015
#31618: Filter wp_cache_get return
-------------------------+-----------------------------
Reporter: mattkeys | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache API | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
This is a bit of an edge case, but there may be a number of situations
where this could be useful.
I have run into a situation where under certain circumstances I would like
wp_cache_get to return false even if there was cached data to be returned.
Perhaps a filter could be added inside of the get() function in the
WP_Object_Cache class to allow me to override the return.
I can provide a patch if anyone agrees with me that this would be nice to
have.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31618>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list