- AJAX
- Webcron
- Cron
# /etc/cron.d/owncloud: crontab fragment for owncloud
#
# Run the owncloud scheduler every minute
#
SHELL=/bin/sh
PATH=/usr/local/bin:/usr/bin:/bin
# m h dom mon dow user command
########################################################################
# Scheduler
#
* * * * * www-data php -f /usr/local/app/owncloud/cron.phpI don't really see much difference between using cron and ajax, except that the ajax version would only run when people were using the site. My preference for cron is, I think, born out of my long-time Unix/Linux experience; cron *is* the scheduler.
RandolphCarter wrote:Hm but wouldn't that be a good thing - the job only running when it's actually needed? I mean it's not like there's much processing time wasted if it runs once every hour, but still a "lazy" approach seems to have no drawbacks to me.
OC is no application running as a process. There are no threads like in e.g. C++-apps. For regular tasks like checking for updates you need some function like cron. Using user actions to start cron is not good. If the task takes long time the user has to wait. Better run cron every given period and you are fine.
I use drupal for some websites and there cron is used as well. If user has no cron tasks by provider or similar he has to use "user" cron as well. They call it "poormanscron". Suitable name in my opinion.
Return to OwnCloud Community Edition 4.x and older
Users browsing this forum: Bing [Bot], Google [Bot] and 10 guests