N°880 : Added a conf param (inline_image_garbage_collector_interval)

SVN:trunk[5737]
This commit is contained in:
Stephen Abello
2018-04-24 12:36:03 +00:00
parent 7d45d5e0ce
commit 65b516d761
2 changed files with 9 additions and 1 deletions

View File

@@ -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)',

View File

@@ -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)