function clear_by_theme($theme) { if (empty($theme)) { return false; } site_widgets::set_last_modify(); app::get('site')->model('widgets')->delete(array('theme' => $theme)); }
function clear_by_app($app_id) { if (!$app_id) { return false; } site_widgets::set_last_modify(); app::get('site')->model('widgets')->delete(array('app' => $app_id)); }
function post_update($params) { $dbver = $params['dbver']; if (version_compare($dbver, '1.0.6', '<')) { //更新widgets css最后更新时间 site_widgets::set_last_modify(); //重新创建module sitemap kernel::single('site_module_base')->create_site_config(); //缓存全部更新, 改造了缓存机制 cachemgr::clean($msg); } }
public function cache_version() { $theme = $this->_request->get_get('theme'); if (!$this->check($theme, $msg)) { $this->_error($msg); } $this->begin(); site_widgets::set_last_modify(); $this->end(kernel::single('site_theme_tmpl')->touch_theme_tmpl($theme)); }