Download & Extend

more flexibility in running the optimizations

Project:DB Maintenance
Component:Code
Category:feature request
Priority:normal
Assigned:hunmonk
Status:closed (fixed)

Issue Summary

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.

AttachmentSize
db_maintenance_cron_frequency.patch3.18 KB

Comments

#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.

AttachmentSize
db_maintenance_cron_frequency_0.patch 3.4 KB

#2

Status:needs review» closed (fixed)

5.x-1.2