本帖最后由 evenzhou 于 2011-11-1 09:07 编辑
由于程序source\function\cache\cache_setting.php中屏蔽
brules', 'bbrulestxt','welcomemsg', 'welcomemsgtxt'等信息。屏蔽原因是:这些数据不经常使用,如果加载到$_G['setting']中占内存,所以单独查询
更改方法:
打开:source/class/class_member.php
找到
- $bbrules = & $this->setting['bbrules'];
- $bbrulesforce = & $this->setting['bbrulesforce'];
- $bbrulestxt = & $this->setting['bbrulestxt'];
- $welcomemsg = & $this->setting['welcomemsg'];
复制代码 在$bbrules = & $this->setting['bbrules'];之前插入
- $query = DB::query("SELECT * FROM ".DB::table('common_setting')." WHERE skey IN ('bbrules', 'bbrulesforce', 'bbrulestxt', 'welcomemsg', 'welcomemsgtitle', 'welcomemsgtxt', 'inviteconfig')");
- while($setting = DB::fetch($query)) {
- $this->setting[$setting['skey']] = $setting['svalue'];
- }
复制代码
|