Closed (fixed)
Project:
Optimize
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2005 at 15:55 UTC
Updated:
13 Jun 2009 at 05:40 UTC
Optimizing every cron run is overkill.
It is better to have a variable and a settings option to specifiy how frequently optimize should run.
Comments
Comment #1
simbot commentedPossibly. I mean I will add this option in, along with the ability to select the tables which are optimized, etc. But I didn't find optimizing to be a time consuming task.
I guess what I'm getting at is, what should the default minimum time between optimizes? Should it maybe be decided by the level of overhead in the tables?
Comment #2
kbahey commentedJust put a drop down list with 1 hour, 6 hours, 12 hours, 1 day, 2 days, 4 days, 1 week, 1 month
Use drupal_map_assoc to create the list, and let the admin decide how often to run that. Default to something reasonable (once a day)?
Comment #3
deekayen commentedI only run my cron.php file every 4 hours. I know I wouldn't choose 1 hour because cron.php wouldn't run that often, but if I did, and it didn't run every hour (since it wouldn't), would that be a bug or just a documentation issue? What might be a different option for selecting frequency that could account for varying cron.php execution frequency?
Comment #4
deekayen commentedRe: selecting which tables you want, please test http://cvs.drupal.org/viewcvs/drupal/contributions/modules/db_maintenanc...
I'm trying to consolidate Optimize and DB maintenance into one.
Comment #5
deekayen commentedhttp://drupal.org/project/cronplus is a decent solution for this.
Comment #6
deekayen commented