Skip to main content
Topic: Disabled or not? (Read 3905 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Disabled or not?

Code: (install mysql) [Select]
	(11, 0, 120, 1, 'd', 1, 'remove_temp_attachments'),
(12, 0, 180, 1, 'd', 1, 'remove_topic_redirect'),
(13, 0, 240, 1, 'd', 1, 'remove_old_drafts'),
Code: (upgrade mysql) [Select]
INSERT INTO {$db_prefix}scheduled_tasks
(next_time, time_offset, time_regularity, time_unit, disabled, task)
VALUES
(0, 120, 1, 'd', 0, 'remove_temp_attachments');
INSERT INTO {$db_prefix}scheduled_tasks
(next_time, time_offset, time_regularity, time_unit, disabled, task)
VALUES
(0, 180, 1, 'd', 0, 'remove_topic_redirect');
INSERT INTO {$db_prefix}scheduled_tasks
(next_time, time_offset, time_regularity, time_unit, disabled, task)
VALUES
(0, 240, 1, 'd', 0, 'remove_old_drafts');

So, disabled or not disabled? O:-)
Bugs creator.
Features destroyer.
Template killer.

Re: Disabled or not?

Reply #1

I seem to recall it's inverted, like the count-posts flag on boards.

Re: Disabled or not?

Reply #2

Sorry for the confusion, I wanted to say that during install these scheduled tasks are set disabled, while when upgrading are enabled.

I would set them one way or the other. :P (enabled seems the more logical)
Bugs creator.
Features destroyer.
Template killer.

Re: Disabled or not?

Reply #3

Seems like they should be enabled by default except for the remove old drafts which I think I set to enable disable when the feature is turned on/off.  So that one should be off by default and let the feature decide if its on or not.