vBulletin 加速,開啟 memcache 支援
發佈人 Moni Chen, lastmodifiedby 發表於 19 11月 2012 02:39 下午

Memcache 使用記憶體快取資料庫查詢的結果,可以大幅減少資料庫查詢的次數以加快網站呈現速度。

原文 https://www.vbulletin.com/forum/entry.php/2391-Supercharge-your-vBulletin-Forum-with-Memcached

vbulletin 請開啟設定檔: /includes/config.php

找到此區域 DATASTORE CACHE CONFIGURATION

/*
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]        = '127.0.0.1';
$config['Misc']['memcacheport'][$i]            = 11211;
$config['Misc']['memcachepersistent'][$i]    = true;
$config['Misc']['memcacheweight'][$i]        = 1;
$config['Misc']['memcachetimeout'][$i]        = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;
*/ 

請將註解拿掉即可,也就是將 /* 以及最後的 */ 這兩行刪除,我們的 memcached 使用預設的 port 11211,因此設定都不需要變更。

若有遇到任何問題請將設定檔改回並連絡我們的客服支援。

(11 votes)
非常有幫助
沒有任何幫助

相關評論 (0)
遠振資訊股份有限公司 • 統一編號:28132571
服務專線:4499-343 (手機撥打請加 02)• 地址:235601 新北市中和區中正路866之7號12樓
[ 雲端主機 ] • [ 虛擬主機 ] • [ 實體主機 ] • [ SSL 憑證 ] • [ 網域申請 ] • [ cPanel 教學 ] • [ WHM 教學 ]
本公司由 鴻安法律事務所秘書 擔任常年法律顧問 • Copyright 2013-2023 All Rights Reserved