Opened 15 years ago
Closed 15 years ago
#10592 closed defect (bug) (fixed)
Options table overhead leads to 500 server error
Reported by: | ryan | Owned by: | |
---|---|---|---|
Milestone: | 2.9 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Optimization | Keywords: | has-patch |
Focuses: | Cc: |
Description
Some hosts are reporting overhead in the range of 600k for options tables. Once it gets this big, 500 server errors result. Perhaps we can query overhead from time to time and issue a warning in the admin if it gets too bloated.
Attachments (2)
Change History (8)
#2
@
15 years ago
We should definitely remove the old rss cache rows. That can be done during upgrade.
#3
@
15 years ago
- Resolution set to fixed
- Status changed from new to closed
#10728 can be used to clear overhead. That's probably as good as we'll get.
#4
@
15 years ago
- Keywords has-patch added
- Resolution fixed deleted
- Status changed from closed to reopened
re-opening with a patch to flush old magpie junk on upgrades
Note: See
TracTickets for help on using
tickets.
Options table bloat has been a problem for a while, it's why I wrote the Clean Options plugin. AFAIK the main problem is from old rss_[hash] and rss_[hash]_ts rows left over from feed caching. Although many plugins/themes do not clean up after themselves when they're removed, I gather from my plugin users that have left feedback that old plugin/theme options are less of a problem.
It seems with the switch from Magpie to SimplePie the cached feed rows are now "transient" and so far, unlike the "rss" rows, they seem to be taking care of themselves.
If this in fact the case, it might be possible to put code in somewhere that will remove all the old "rss" rows.
*Note, if you use regex to remove them, take care not to remove the "rss_excerpt_length", "rss_use_excerpt", or "rss_language" options.