#42070 closed enhancement (fixed)
Remove networks_have_paths cache key
Reported by: | spacedmonkey | Owned by: | spacedmonkey |
---|---|---|---|
Milestone: | 6.0 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Networks and Sites | Keywords: | has-patch commit |
Focuses: | multisite | Cc: |
Description
The cache key networks_have_paths
is used in bootstrap process to load networks. It caches values stored in from a WP_Network_Query query. WP_Network_Query already has caching, make this cache pointless.
Change History (10)
#1
@
3 years ago
- Milestone changed from Awaiting Review to 6.0
- Owner set to spacedmonkey
- Status changed from new to assigned
- Version set to 4.6
This ticket was mentioned in PR #2504 on WordPress/wordpress-develop by uday-kokitkar.
3 years ago
#2
- Keywords has-patch added
This ticket was mentioned in PR #2504 on WordPress/wordpress-develop by uday-kokitkar.
3 years ago
#3
Trac ticket: https://core.trac.wordpress.org/ticket/42070
This ticket was mentioned in Slack in #core-multisite by spacedmonkey. View the logs.
3 years ago
#5
@
3 years ago
The PR at #2504 looks good to go. I think this should be committed and be part of 6.0.
3 years ago
#8
The only reservation I can dream up with removing this, is the potential for breakage for sites manually setting this cache key inside of a custom sunrise.php
.
The only reason they would do that is specifically to get ahead of and around this query.
peterwilsoncc commented on PR #2504:
3 years ago
#10
Committed in https://core.trac.wordpress.org/changeset/53083
Trac ticket: https://core.trac.wordpress.org/ticket/42070