[wp-trac] [WordPress Trac] #5389: Suspend and resume object cache
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 12 10:39:42 UTC 2011
#5389: Suspend and resume object cache
---------------------------------+-----------------------------
Reporter: ryan | Owner: anonymous
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Cache | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch 3.2-early |
---------------------------------+-----------------------------
Comment (by duck_):
Was thinking about this again and two ideas for slightly different
approaches.
Could use a filter instead of a global: {{{if ( apply_filters(
'suspend_caching', false ...}}}. Downside being more overhead in a filter
than another check.
Or take Ryan's old patch, move the functions out of cache.php and still
allow gets. Therefore not introducing a new global, reusing
`$wp_object_cache` instead. I prefer this approach.
Will re-test and upload patch later.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/5389#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list