ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE Cron help

July 27, 2008 4:27am

Subscribe [1]
  • #1 / Jul 27, 2008 4:27am

    keola

    8 posts

    I know this a very rudimentary question but I am trying to get the ExpressionEngine Cron 1.0.3 plugin to work with coolcommerce. However, the question isn’t necessarily one of how to use the cron with coolcommerce, rather, how to use it at all.

    The docs for coolcommerce say to insert the following:

    {exp:cron minute="0" hour="1" day="*" month="*" module="coolcommerce:process_subscriptions"} {/exp:cron}

    The problem is, I don’t know where those tags need to go in order for the cron to run.

    I would assume a template but not sure if it matters which.

    Any help would be great.

    Thanks in advance,

    -shane

  • #2 / Jul 27, 2008 10:04am

    Robin Sowell

    13255 posts

    Basically, it’s kind of a ‘fake cron’- php can’t be scheduled to run at a certain time- at least not by itself.  So, the plugin relies on the browser loading the page that tag is on- at which point it triggers the time check.  If enough time has passed, then it triggers whatever code it’s supposed to trigger.

    Which was a long way of saying- yes, you need to put it on a template and one which will be loaded with some frequency.  If the page is never loaded, the php time check will never be triggered and the code never run.  Beyond that, it’s really up to you which template you put it on.

    That help?

  • #3 / Jul 27, 2008 12:36pm

    keola

    8 posts

    Perfect. Thanks for your help!

  • #4 / Jul 27, 2008 1:01pm

    Robin Sowell

    13255 posts

    Glad it made sense.  Closing this one out….

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases