Opened 13 years ago
Closed 12 years ago
#19008 closed enhancement (fixed)
Introduce a notoptions cache for site options
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Cache API | Keywords: | has-patch |
Focuses: | Cc: |
Description
Following up on #18955.
Adding a 'notoptions' cache for site options would be consistent with normal options.
Attachments (2)
Change History (8)
#3
follow-up:
↓ 4
@
12 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 3.7
First pass
#4
in reply to:
↑ 3
@
12 years ago
Replying to wonderboymusic:
First pass
Uploaded 19008.2.diff to replace get_option()
with the accidentally dropped get_site_option()
in add_site_option()
. Otherwise this looks good to me.
Note: See
TracTickets for help on using
tickets.
+1 This should be fixed.
I found almost 30 queries per pageload on a multisite site because it was repeatedly querying for a nonexistent "ms_files_rewriting" site option key. Adding the key fixed the problem, but the notoptions cache should have been there to prevent the multiple queries in the first place.