[Owncloud] CronJob System within ownCloud

Thomas Tanghus thomas at tanghus.net
Sun Jul 22 18:09:21 UTC 2012


On Sunday 22 July 2012 17:56 Jakob Sack wrote:
> Hello Georg,
> 
> > We could add a hook at the end of index.php, remote.php and
> > public.php.
> > something like OC_Hook::emit('OC_Core','page_loaded');
> > and connect the background app with it.
> 
> I really don't like this idea because the user will always see a "page
> loading" spinner. It's better to use an ajax request IMHO.
> Regards,

For me emitting a signal from remote.php would be the best solution. I have 
only one cron job with a limited execution time at my provider, and I very 
rarely open my production instance in the browser, but I have 3 devices 
checking cal/carddav regularly.

To limit the load the cron app could just write a timestamp to oc_preferences 
or in an OC_FilesystemView, and only run the jobs if N minutes has passed 
since the last request.

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus



More information about the Owncloud mailing list