Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Configuring Report Generation Timing

From IHRIS Wiki

Revision as of 12:43, 12 November 2013 by Sturlington (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Custom Reports are cached on a regular basis when your site is accessed. There are a few settings you can override in your site configuration file to change this behavior. You can also see how to Turn Off Background Processes if you wish to not have the form caches update automatically.

See also Generate Reports Automatically

This page is a work in progress

Configuration Settings

Default value: 10
This determines how much time in minutes that must pass before the background process starts to cache the reports if they are stale. This just causes the background process to spawn, the process itself determines what needs to be updated based on the other timing settings. If you set this to 0 then the background process will never start. When Custom Reports are cached, then any required form caches are also run (if they are stale) before the report. This doesn't mean that the caches will be run every X minutes, but if X minutes have passed the next time someone access the site the background process will be launched.

Configuration Example

<source lang="xml"> <configurationGroup name="CustomReports_times" path="/modules/CustomReports/times">

 <configuration name="stale">
   <displayName>Stale Time</displayName>
   <description>The time (in minutes) after which reports are considered stale. If less than or equal to zero 
     then it is always considered stale
 <configuration name="stale_by_report" values="many" type="delimited">
   <displayName>Stale Time</displayName>
   <description>The time (in minutes) after which a specific report is considered stale. Overides the value in 
     times/stale. If less than or equal to zero then it is always considered stale
 <configuration name="background">
   <displayName>Background Time</displayName>
   <description>The time (in minutes) after which to launch the backround process to generate reports. If less 
     than or equal to zero we do not launch it.
 <configuration name="fail">
   <displayName>Fail Time</displayName>
   <description>The time (in minutes) after which a report is considered to have failed generation</description>

</configurationGroup> </source>

Magic Data Browser

We can use to the Magic Data Browser to change this. WARNING this is a dangerous tool as you can really destroy your system -- think of RegEdit under Windows.

Suppose we want to change


to be 60 minutes.

Go to

  • Configure System
  • Browse Magic Data
  • I2CE
  • modules
  • CustomReports
  • times

Your screen should look like this:

Now, change the line where it says "background" from "10" to "60" and click the "Set" button next to it.