Welcome Guest, Not a member yet? Register   Sign In
Cron jobs... Does anyone use a "maintenance" script?
#1

[eluser]tomdelonge[/eluser]
Does anyone ever have one script to be executed so often on the server that just does basic maintenance. Like having a queue of emails to send and sending a few every few minutes. Or other things like that... You know what I mean?
#2

[eluser]David Johansson[/eluser]
I think the session class has something built in that executes avery time it is loaded to clear expired data in the database if that db for sessions is activated.
#3

[eluser]tomdelonge[/eluser]
Yeah that's the built in garbage collection. But that takes the user's time (that's why it only executes sometimes). I don't want something that bothers the users.
#4

[eluser]rogierb[/eluser]
yeah, we use this cronjob script to execute several scripts. Works like a charm.

One of our script just runs once a day, another once every hour.

The best part is that you can take advantage of CI:-)
#5

[eluser]dgreenhouse[/eluser]
[quote author="rogierb" date="1248439303"]
...<snip>...

Signature

The art of managing is to explain tomorrow why yesterdays solution doesn’t work today.

[/quote]

~

Like your signature! :-)

Boy do I know that one!




Theme © iAndrew 2016 - Forum software by © MyBB