We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!

Answered CRON jobs?

  • discuss.answer
    • 33968
    • 863 Posts
    Quote from: dinocorn at Jan 14, 2013, 12:14 PM
    Ya I mean I say forget the Evo > Revo tool and let's see scheduling features! Who's with me?
    Yep, won't even consider Cloud until cronjobs are available.
      • 38290
      • 712 Posts
      I'm not alone!
        jpdevries
      • Quote from: dinocorn at Jan 14, 2013, 07:29 PM
        I'm not alone!
        Seems like I am! Never had the need for cron jobs for the site builds I did. tongue
          Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

          Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
          • 33968
          • 863 Posts
          I do a lot of work with booking engines and scheduled emails/reminders, so cronjobs are an essential part of most of these sites.

          There are some "external cronjob" services which will basically allow you to use their cron to request a url you provide them at set intervals, but it just doesn't feel right to me. It seems more secure and reliable to run everything internally.
            • 37099
            • 338 Posts
            Quote from: markh at Jan 14, 2013, 08:39 PM

            Seems like I am! Never had the need for cron jobs for the site builds I did. tongue

            I have one site that has 16 cron scripts running, the business wouldn't work without them.

            Including scripts to: send follow up emails, clearing daily IP hit counts, moving logs around, deleting orphaned uploaded files, checking for suspicious files, preparing data, general db maintenance etc...

            I would say any serious hosting environment needs to offer some sort of cron facility.

            Mike
              • 38290
              • 712 Posts
              I agree. Gotta have server scheduling features to really have Creative Freedom in your development process.
              You can do some pretty amazing things with MODX + CRON. I've used it to add a simple ecommerce API that allows a MODX marketing site to consume up to date price and inventory.
              The concept is simple:

              • every X minutes CRON job evokes a php script that hits the Shopify API
              • script parses XML and creates many individual text files that store product info
              • in MODX I simple call a snippet uncached that returns the contents of the appropriate text file

              So performance wise users never wait for markup to be served, site is essentially completely cached but dynamic in the very few places that need be thanks to MODX cacheing.

              Also, I'm not unnecessarily making requests to Shopify often only 4 per hour.
                jpdevries
                • 38290
                • 712 Posts
                Quote from: thingstodo at Jan 14, 2013, 09:46 PM
                Quote from: markh at Jan 14, 2013, 08:39 PM

                Seems like I am! Never had the need for cron jobs for the site builds I did. tongue

                I have one site that has 16 cron scripts running, the business wouldn't work without them.

                Including scripts to: send follow up emails, clearing daily IP hit counts, moving logs around, deleting orphaned uploaded files, checking for suspicious files, preparing data, general db maintenance etc...

                I would say any serious hosting environment needs to offer some sort of cron facility.

                Mike

                That is awesome. Ya with scheduling features you can basically turn your server into a robot!
                  jpdevries
                  • 38878
                  • 255 Posts
                  /this

                  Quote from: dinocorn at Jan 14, 2013, 12:14 PM
                  Ya I mean I say forget the Evo > Revo tool and let's see scheduling features! Who's with me?

                  (judging by feedback at MODXpo Utrecht, likely no one)
                    • 44510
                    • 1 Posts
                    For users whose cloud server doesn't have Cron, third party cron service like easycron.com is a good alternative. It's quite reliable with log and email notification feature.
                      • 37464
                      • 16 Posts

                      (http://modx.com/blog/2013/10/23/modx-cloud-fall-2013-update/) :

                      We're committed to helping people build MODX sites, therefore, we've added more must-have development tools for you including, crontab (shell or PHP), Git, command line PHP, improved SSH, and rsync.