districtscache.php 309 B

12345678910111213
  1. <?php
  2. //districts cache update
  3. if (ubRouting::get('action') == 'districtscache') {
  4. if ($alterconf['DISTRICTS_ENABLED']) {
  5. $districts = new Districts(true);
  6. $districts->fillDistrictsCache();
  7. die('OK: DISTRICTSCACHE');
  8. } else {
  9. die('ERROR: DISTRICTS DISABLED');
  10. }
  11. }