more flexibility in running the optimizations
hunmonk - January 28, 2007 - 00:33
| Project: | DB Maintenance |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | hunmonk |
| Status: | closed |
Description
i have my website cron set to run hourly. it seems silly to be optimizing tables on the hour, so the attached patch adds more flexibility to when optimizations are run. a select box gives the option of running hourly, daily (default), weekly, and monthly. plus there's a link to optimize manually.
tested and works as advertized for me.
| Attachment | Size |
|---|---|
| db_maintenance_cron_frequency.patch | 3.18 KB |

#1
slight mistake in that last patch -- we need to set our own marker for the last time that the optimizations were performed, and not rely on cron_last.
attached patch corrects.
#2
5.x-1.2