function cache_all() { cache_module(); cache_area(); cache_category(); cache_fields(); cache_group(); cache_pay(); cache_oauth(); cache_type(); cache_keylink(); return true; }
function delete() { if ($this->groupid < 5) { return false; } $this->db->query("DELETE FROM {$this->table} WHERE groupid={$this->groupid}"); cache_delete('group-' . $this->groupid . '.php'); cache_group(); return true; }
cache_area(); msg('地区缓存更新成功', '?action=' . $action . '&step=' . ($step + 1)); } else { if ($step == 6) { cache_clear('fields'); cache_fields(); cache_clear('option'); msg('自定义字段更新成功', '?action=' . $action . '&step=' . ($step + 1)); } else { if ($step == 7) { cache_clear_ad(); tohtml('index'); msg('全部缓存更新成功'); } else { cache_clear('group'); cache_group(); cache_clear('type'); cache_type(); cache_clear('keylink'); cache_keylink(); cache_pay(); cache_banip(); cache_banword(); cache_bancomment(); msg('正在开始更新缓存', '?action=' . $action . '&step=' . ($step + 1)); } } } } } }