Opened 15 years ago
Closed 13 years ago
#19008 closed enhancement (fixed)
Introduce a notoptions cache for site options
| Reported by: | duck_ | Owned by: | duck_ |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Cache API | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
13 years ago
- Keywords has-patch added
- Milestone Awaiting Review → 3.7
First pass
#4
in reply to: ↑ 3
@
13 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
+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.