When using switch_to_blog() with a persistent object cache that lacks wp_cache_switch_to_blog() support, non-persistent groups are not maintained
|Reported by:||markjaquith||Owned by:|
|Severity:||normal||Keywords:||has-patch needs-testing needs-unit-tests|
|Cc:||johnjamesjacoby, erick@…, stevenword@…, nuno.morgadinho@…|
If you're using a persistent object cache that lacks the new wp_cache_switch_to_blog() support, WordPress core elses into a complete cache clobbering branch. It is smart about grabbing the global groups and re-adding those after wp_cache_init() is called, but it doesn't do the same for non-persistent groups. Those are a hardcoded array. So if you call switch_to_blog(), you would lose any custom-added non-persistent groups.
Change History (13)
- Keywords 3.7-early added
- Milestone changed from 3.6 to Future Release