Opened 8 years ago
Last modified 23 months ago
#40447 new enhancement
Add cache domain to site/network query
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | has-patch needs-refresh close |
Focuses: | multisite | Cc: |
Description
A cache domain allows to define a custom cache key to ensure unique results when one of the query filters, like sites_clauses
, is used to customize the default query. This is necessary because the default cache key is only computed from the default query variables.
Attachments (1)
Change History (5)
This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.
8 years ago
#3
@
8 years ago
- Milestone changed from 4.8 to Future Release
Per Slack: https://wordpress.slack.com/archives/C03BVB47S/p1494269010909400
Let's get back to this ticket as necessary. @spacedmonkey expressed interest in working on this.
#4
@
23 months ago
- Keywords needs-refresh close added
@spacedmonkey Do you still have an use case for this? Otherwise I think we can close this as wontfix.
Worth to mention that when an argument is added any existing cache will be invalidated due to the new cache key unless we add some special handling for cache_domain = 'core'
.
On second thought, you can use the
parse_site_query
to register a custom query var like so: