XClose
Dada Typo : http://www.dadamanifesto.org
Dada Typo

Manifesto User Manual 2.04

Cronmaster

Because PHP lacks scheduled execution capabilities, Manifesto relies on a single cron job, defined within the operating system, to execute scheduled tasks.

You must properly configure this cron job to ensure that your site will run properly -- emptying the cache periodically, refreshing content, sending notifications, etc.

The one cron job you need to define, either on the root user of the OS or the user your site is owned by, is

*/10 * * * * /usr/bin/curl -s -S -m 1200 -y 50 -Y 20 http://[your.site.url]/cronmaster.php >> /var/log/cronmaster.log 2>&1

You may configure the "cronmaster.log" to any directory with proper permissions (perhaps the "/logs/" directory in your site. This command tells your server to use the "curl" program to hit the "cronmaster.php" page on your site every 10 minutes. To prevent anyone from hitting "cronmaster.php" manually, the cronmaster.php script will allow ONLY the server to execute the commands on the page. In technical terms, it checks to see the the $_SERVER['REMOTE_ADDR'] variable (the visitor) matches the result of gethostbyname($_SERVER['HTTP_HOST']). If your server is configured with multiple IP addresses, it is possible that these two will not match. If that is the case, you must hard-code the proper IP address in place of the gethostbyname($_SERVER['HTTP_HOST']) variable.

Specific tasks in Manifesto are broken down into 5 categories:

  1. Scripts executed every 10 minutes (e.g. remote uploading of media)
  2. Scripts executed hourly (whenever the HOUR changes)
  3. Scripts executed daily (whenever the DATE changes)
  4. Scripts executed weekly (whenever the WEEK OF THE YEAR changes)
  5. Scripts executed monthly (whenever the MONTH changes)

Each module can have its own series of cron jobs, and all are listed on the cronmaster page.

If you are running multiple IMC sites on a single server, you may want to alter the main cron job to prevent all the sites from executing their scripts at the same time. Rather than using "*/10" for the first parameter (every 10 minutes), specify the minutes of the hour you want the script to run as a list, e.g. "0,10,20,30,40,50". That way, you can configure another site to use "1,11,21,31,41,51", etc. and you can support up to 10 IMCs without attempting to execute the scripts simultaneously.

Return

 

This site made manifest by Manifesto software

Page executed in 0.10399603843689 seconds.
Loaded 62 classes from 12 of 19 total class files. Read 2 objects from the database. Queries - count: 2 select: 6 update: 1