Turn Off Background Processes: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Background processes are run at configured intervals as users access the site.  The main use of background processes is to keep report caches up to date for your site.  On sites with large amounts of data you may want to disable running background processes and manually set up a cron job to cache reports on a predefined interval instead of as users access the site.  This may speed up access on some pages when users begin to access your site after a longer lull in activity.  See the How To [[Configuring Report Generation Timing]] and [[Configuring Form Cache Generation Timing]] for more information on the settings to control report generation.
Background processes are run at configured intervals as users access the site.  The main use of background processes is to keep report caches up to date for your site.  On sites with large amounts of data you may want to disable running background processes and manually set up a [http://en.wikipedia.org/wiki/Cron cron job] to cache reports on a predefined interval instead of as users access the site.  This may speed up access on some pages when users begin to access your site after a longer lull in activity.  See the How To [[Configuring Report Generation Timing]] and [[Configuring Form Cache Generation Timing]] for more information on the settings to control report generation.


'''This page is currently a work in progress.'''
Here is a sample cron-job entry to generate all reports every night at 2:00am.
<source lang='text'>
0 2 * * * /usr/bin/php '''/var/www/manage'''/index.php --page=/CustomReports/generate --nocheck=1 > /dev/null 2>&1
</source>


[[Category:How-To]]
[[Category:Developer Resources]]

Latest revision as of 20:05, 1 March 2019

Background processes are run at configured intervals as users access the site. The main use of background processes is to keep report caches up to date for your site. On sites with large amounts of data you may want to disable running background processes and manually set up a cron job to cache reports on a predefined interval instead of as users access the site. This may speed up access on some pages when users begin to access your site after a longer lull in activity. See the How To Configuring Report Generation Timing and Configuring Form Cache Generation Timing for more information on the settings to control report generation.

Here is a sample cron-job entry to generate all reports every night at 2:00am. <source lang='text'>

0 2 * * * /usr/bin/php /var/www/manage/index.php --page=/CustomReports/generate --nocheck=1 > /dev/null 2>&1

</source>