We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38290
    • 712 Posts
    Does regencache work when you run it stand alone? Did you update the path the the core folder?
      jpdevries
      • 32699 ☆ A M B ☆
      • 427 Posts
      Quote from: kudykam at Jun 07, 2013, 02:36 AM
      I tried to run it through the cron job manager, but it returns server error... (other cronjobs works)
      Update: It crashes on line:
      require 'config.core.php';


      That is the hard way and unnecessary.

      Create a hidden published resource in the site named some ridiculous name, turn off searchable and cacheble, so it does not appear in GoogleSiteMap package etc.

      Drop the snippet I made or some other implementation into the page. You can even go as far as have the template being blank and the cron return nothing.


      There is nothing wrong with an alias like:
      aslkajlsdalidmiomcomiomqaiomaiomwomicoaimiwmcoaimcm.html
      


        Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

        Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
        • 16430
        • 217 Posts
        I dont think it is not necessary. I dont want to manually open page with that snippet, when cron job can do it for me regulary...
        Snippet does work standalone as I wrote before, but runs only few second (cache is being regenerated) then server returns error 500 (I guess it is some timeout, or maybe something else)
          • 32699 ☆ A M B ☆
          • 427 Posts
          The point was to run the page in the cron and not manually, which gives direct access to the modx installation without all of the errors you are having. The name is too help keep others from running it manually.

          Quote from: kudykam at Jun 07, 2013, 12:58 PM
          I dont think it is not necessary. I dont want to manually open page with that snippet, when cron job can do it for me regulary...
          Snippet does work standalone as I wrote before, but runs only few second (cache is being regenerated) then server returns error 500 (I guess it is some timeout, or maybe something else)
            Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

            Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
            • 16430
            • 217 Posts
            Via Cron it runs for 300 sec. then returns error 500. During that time cache resources are recreated....
            In modx log I have many lines like this:
            [2013-06-10 13:53:21] (INFO @ /index.php) Principal 0 does not have permission to load object of class modDocument with primary key: 576
            [2013-06-10 13:53:29] (INFO @ /index.php) There was an error retrieving or creating session id: jit66u4cj5n63gmlikksg98vr6


            Question: What if specific cache resource already exists? Is it skipped or recreated again? [ed. note: kudykam last edited this post 13 years, 4 months ago.]
              • 32699 ☆ A M B ☆
              • 427 Posts
              Quote from: kudykam at Jun 10, 2013, 05:20 AM
              Via Cron it runs for 300 sec. then returns error 500. During that time cache resources are recreated....


              What is "it"? The code I added to this thread ran on a large site in a few seconds.
                Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
                • 16430
                • 217 Posts
                "IT" is your code. On my site it take a few second (about 5) to create cache for one resource.
                  • 32699 ☆ A M B ☆
                  • 427 Posts
                  What kind of hardware you running? How much memory?

                  I run it on a site with 300 pages and it runs in a couple of seconds.
                    Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                    Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
                    • 41592 ☆ A M B ☆
                    • 83 Posts
                      Francesco Mussoni | MODX Ambassador | Skype: solidusite2 | Email: [email protected]