mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°880 : Added a conf param (inline_image_garbage_collector_interval)
SVN:trunk[5737]
This commit is contained in:
@@ -1037,6 +1037,14 @@ class Config
|
||||
'source_of_value' => '',
|
||||
'show_in_conf_sample' => true,
|
||||
),
|
||||
'inline_image_garbage_collector_interval' => array(
|
||||
'type' => 'integer',
|
||||
'description' => 'Frequency (in seconds) at which the inline image garbage collector will run.',
|
||||
'default' => 3600,
|
||||
'value' => '',
|
||||
'source_of_value' => '',
|
||||
'show_in_conf_sample' => false,
|
||||
),
|
||||
'date_and_time_format' => array(
|
||||
'type' => 'array',
|
||||
'description' => 'Format for date and time display (per language)',
|
||||
|
||||
@@ -499,7 +499,7 @@ class InlineImageGC implements iBackgroundProcess
|
||||
{
|
||||
public function GetPeriodicity()
|
||||
{
|
||||
return 3600; // Runs every 3600 seconds
|
||||
return MetaModel::GetConfig()->Get('inline_image_garbage_collector_interval'); // run every definied time
|
||||
}
|
||||
|
||||
public function Process($iTimeLimit)
|
||||
|
||||
Reference in New Issue
Block a user