perform.php 556 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * 网站设置
  4. *
  5. * by 33 hao .com v3
  6. */
  7. defined('InShopNC') or exit('Access Invalid!');
  8. class performControl extends SystemControl{
  9. public function __construct(){
  10. parent::__construct();
  11. Language::read('setting');
  12. }
  13. /**
  14. * 性能优化
  15. */
  16. public function performOp(){
  17. if ($_GET['type'] == 'clear'){
  18. $lang = Language::getLangContent();
  19. $cache = Cache::getInstance(C('cache.type'));
  20. $cache->clear();
  21. showMessage($lang['nc_common_op_succ']);
  22. }
  23. Tpl::showpage('setting.perform_opt');
  24. }
  25. }