cachedog.php 789 B

1234567891011121314151617181920212223
  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. die('CACHEDOG:CACHE_CLEANED');
  19. } else {
  20. die('CACHEDOG:CACHE_OK');
  21. }
  22. }