Does regencache work when you run it stand alone? Did you update the path the the core folder?
jpdevries
-
☆ A M B ☆
- 427 Posts
Quote from: kudykam at Jun 07, 2013, 02:36 AMI 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
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)
-
☆ 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 PMI 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)
-
☆ A M B ☆
- 427 Posts
Quote from: kudykam at Jun 10, 2013, 05:20 AMVia 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.
"IT" is your code. On my site it take a few second (about 5) to create cache for one resource.
-
☆ 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.
-
☆ A M B ☆
- 83 Posts