By Adam Wilner on Saturday, 15 August 2015
Replies 5
Likes 0
Views 784
Votes 0
We have a large number of potential Easyblog users on one server, potentially several hundred, and are concerned about setting up hundreds of cron jobs that run every 5 minutes. Is there an alternative to cron jobs for email, Twitter and import feeds? Would having that many cron jobs running degrade our server performance in your opinion? Is there a way to consolidate cron jobs so that we don't have to run so many?
Ok, here's the solution we came up with in case it might be helpful to anyone else with a similar problem. We got it down to one cron job for all sites on our server. We created a script for the cron to run and that script will run all the tasks for each site. It looks in the account folder (/home in our case) for an Easyblog install (looks for the file easyblog.php in the components folder). It loops through the accounts and if it finds Easyblog, then it finds the URL for the site and calls the cron task or cronfeed task as necessary. It's a PHP script that runs from the command line. It could also be a bash script or anything you want. I could provide the script for anyone interested. Thanks.
·
Wednesday, 19 August 2015 01:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Adam,

Easyblog currently only have two types of cronjobs which is cronjob to process email notifications and cronjobs for feeds importer. You can activate "send email on page load" as an alternative for email notification cronjobs from your backend > easyblog > settings > notification, http://screencast.com/t/yLybarjK60Bt . With this setup you don't have to configure cronjobs for this on your server. However this might degrade your site speed as it will try to process all the emails available for each page load.

For the feed importers cronjobs, unfortunately there has no alternative for this cronjobs yet.
·
Monday, 17 August 2015 11:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, the documentation is not very clear about the types of cron jobs. There's one cron that goes to http://yoursite.com/index.php?option=com_easyblog&task=cronfeed, which I assume is the feed cron. Another that goes to http://yoursite.com/index.php?option=com_easyblog&task=cron, which I thought was for remote posting via email. Where does email notification come in?
·
Tuesday, 18 August 2015 02:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Adam,

"task=cron" is basically the main cronjob for easyblog. It will process all email notifications, remote publishing, remote posting and post scheduler on your site while "task=cronfeed" is to process all the feed importer on your site. The reason why we separate the cronjob is because not all users will use feed importer as their main blog source for their site hence it can minimize some load on the site.
·
Tuesday, 18 August 2015 12:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Adam,

Thanks for the share! I will mark your reply as resolved so that other people can see it.
·
Wednesday, 19 August 2015 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post