function update_posttableids() { $tableids = get_posttableids(); DB::insert('common_setting', array('skey' => 'posttableids', 'svalue' => serialize($tableids)), false, true); save_syscache('posttableids', $tableids); }
function update_posttableids() { $tableids = get_posttableids(); C::t('common_setting')->update('posttableids', $tableids); savecache('posttableids', $tableids); }