mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
feature #370, automatic purge on history
This commit is contained in:
parent
5fb18eda36
commit
eef8a27f5e
3 changed files with 106 additions and 0 deletions
|
@ -502,6 +502,12 @@ INSERT INTO '.HISTORY_TABLE.'
|
|||
history_summarize(50000);
|
||||
}
|
||||
|
||||
if ($conf['history_autopurge_every'] > 0 and $history_id % $conf['history_autopurge_every'] == 0)
|
||||
{
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/functions_history.inc.php');
|
||||
history_autopurge();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue