[wp-trac] [WordPress Trac] #26402: Add option to DB if option is only present in cache when updating option
WordPress Trac
noreply at wordpress.org
Sat Mar 15 06:18:56 UTC 2014
#26402: Add option to DB if option is only present in cache when updating option
----------------------------------------+-----------------------------
Reporter: codix | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Cache API | Version: 3.8
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Changes (by nacin):
* milestone: 3.9 => Future Release
Comment:
> In very rare circumstances some options may not be in DB but in cache.
Knowing under what circumstances this would occur is really the only good
way to fix this.
I understand the desire to wp_cache_delete() in these situations, but I am
not sure about the desire to re-add. There is a concern that cache is
stale, should just work to clear the cache and let it balance itself out
later.
This is lacking unit tests to demonstrate the bug and/or fix, so I'm
moving it to future release pending additional feedback.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26402#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list