人人商城

updatecache.ctrl.php 859B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. load()->model('cache');
  8. load()->model('setting');
  9. load()->object('cloudapi');
  10. $_W['page']['title'] = '更新缓存 - 设置 - 系统管理';
  11. if (checksubmit('submit', true)) {
  12. $account_ticket_cache = cache_read(cache_system_key('account_ticket'));
  13. pdo_delete('core_cache');
  14. cache_clean();
  15. cache_write(cache_system_key('account_ticket'), $account_ticket_cache);
  16. unset($account_ticket_cache);
  17. cache_build_template();
  18. cache_build_users_struct();
  19. cache_build_setting();
  20. cache_build_module_subscribe_type();
  21. cache_build_cloud_ad();
  22. pdo_delete('modules_cloud');
  23. iajax(0, '更新缓存成功!', '');
  24. }
  25. template('system/updatecache');