summaryrefslogblamecommitdiffstats
path: root/modules-available/sysconfig/hooks/cron.inc.php
blob: cedc081004d6c2f7d33426373adae95966434a3d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

     


                                                                         
                                                                           




                                                               
<?php

// Cleanup orphaned config<->location where the location has been deleted
Database::exec("DELETE c FROM configtgz_location c
			LEFT JOIN location l USING (locationid)
			WHERE l.locationid IS NULL AND c.locationid <> 0");

// Refresh every once in a while (should roughly be once a day)
if (mt_rand(0, 300) === 0) {
	Shib::refreshIdpSuffixMap();
}