We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

ExpressionEngine Cron

Development and Programming

stubear's avatar
stubear
114 posts
15 years ago
stubear's avatar stubear

I’m a little confused as to how the EE cron plug-in works. If I place the tag on a template, how do I get the cron job to run? If I have to open a template to run the cron job, doesn’t that defeat the purpose of cron? Apparently I’m missing something here. By the way, I’m trying to get the cron plug-in to run the feedgrab plug-in in an EE1 site so I can grab blog entries from a blogspot blog.

       
Ingmar's avatar
Ingmar
29,245 posts
15 years ago
Ingmar's avatar Ingmar

You don’t have to open the template, it just needs to be hit, i.e. somebody (a web surfer) needs to look at it. It’s no real cron, no, but better than nothing.

       
prmansfield's avatar
prmansfield
11 posts
15 years ago
prmansfield's avatar prmansfield

EE Cron worked well for my EE 1.6.8 site but not now that I’ve just upgraded to 2.1.3 Build 20101220 and replaced the old EE Cron with 1.1. To be sure that the plugins I wrote to be run by EE Cron are not the problem I’ve now installed EE Email Cron 1.1

I have placed the following code in the masthead template where cron worked well before. The template is set to not cache.

{exp:cron plugin="cron_email" minute="10,20,25,30,35,40,50,60" hour="1-24" day="1-28" month ="1" to="[email protected]" subject="10 minute Email"}
Gday!
{/exp:cron}

When I save the template after changing the parameters I get an email. Otherwise I have not received any emails all day despite that I think I should get one every 10 minutes since my site gets nearly 20,000 hits per day.

Any suggestions?

       
Chris Ruzin's avatar
Chris Ruzin
41 posts
15 years ago
Chris Ruzin's avatar Chris Ruzin

I’m having the same issue. It will not run unless I change the template it’s in. This used to work. I’m digging around to see what I can find.

       
prmansfield's avatar
prmansfield
11 posts
15 years ago
prmansfield's avatar prmansfield

Chris,

Thank you. Good to know it is not just me! I’ve solved my problem by learning how to use real unix cron. However the EE cron was easier (when it worked) so I’m sure I and others would benefit if this problem can be resolved. It remains unclear to me what is the correct procedure to get support for Ellis Labs’ First Party addons.

       
Chris Ruzin's avatar
Chris Ruzin
41 posts
15 years ago
Chris Ruzin's avatar Chris Ruzin

Forgot to mention this. In the cron plugin, in line 202 look for $end = 2010. Change that to something later and it should start firing again.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.