Delete invalid service elements.

(cherry picked from commit d5c5e04463)
This commit is contained in:
Ramon Novoa 2014-10-29 17:11:51 +01:00
parent 656bcb8ba3
commit 8a95b03f05
1 changed files with 3 additions and 0 deletions

View File

@ -222,6 +222,9 @@ sub pandora_purgedb ($$) {
# Delete policy queue data
enterprise_hook("pandora_purge_policy_queue", [$dbh, $conf]);
# Delete policy queue data
enterprise_hook("pandora_purge_service_elements", [$dbh, $conf]);
# Delete GIS data
$conf->{'_gis_purge'}= 15 if (!defined($conf->{'_gis_purge'}));
log_message ('PURGE', "Deleting old GIS data (More than " . $conf->{'_gis_purge'} . " days).");