cachedog.php 931 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. if (ubRouting::get('action') == 'cachedog') {
  3. $cachedUsersData = zb_UserGetAllDataCache();
  4. $currentUsersData = zb_UserGetAllData();
  5. if ($cachedUsersData != $currentUsersData) {
  6. zb_UserGetAllDataCacheClean();
  7. if (@$alterconf['ONLINE_HP_MODE'] == 2) {
  8. //invalidate online module ajax source
  9. $cache = new UbillingCache();
  10. $cache->delete('HPONLINEJSON');
  11. }
  12. if (@$alterconf['USERBYNUM_ENABLED'] or @$alterconf['TELEPONY_ENABLED']) {
  13. $cache = new UbillingCache();
  14. $cache->delete('PHONEDATA');
  15. $cache->delete('EXTMOBILES');
  16. $cache->delete('PHONETELEPATHY');
  17. }
  18. if (@$alterconf['BUILD_EXTENDED']) {
  19. $cache = new UbillingCache();
  20. $cache->delete('USERBUILDS');
  21. }
  22. die('CACHEDOG:CACHE_CLEANED');
  23. } else {
  24. die('CACHEDOG:CACHE_OK');
  25. }
  26. }