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

    I'm trying to set up opengeek's regencache (https://gist.github.com/opengeek/ec3f885cefe17e470aa1) using some cronjobs on our server. I'm able to run this command from the terminal:

    php cron/regencache.php > cron/regencache.txt


    and it completes without issue. However, when I attempt to use that in a cron, I get this error:

    [2014-04-10 11:50:02] (INFO) Regenerating MODX Cache<pre>
    [2014-04-10 11:50:02] (INFO) Principal 0 does not have permission to load object of class modContext with primary key: web
    [2014-04-10 11:50:02] (INFO) </pre>
    [2014-04-10 11:50:02] (INFO) RegenCache executed in 0.5751 seconds


    I'm not sure why this would be firing when cron'd. Anyone have any ideas?