但是如果在登入的狀態下,由於各人的變數不同(即使這個 Wiki 只有我一個使用者),所以如果要生成靜態頁面,要處理的毛多很多,就有點不實際。不過 MediaWiki 另外有個設定 $wgCacheDirectory 會將比如 L10N 的資源編成快取檔,也省下了不少的 DB 操作。把這個路徑設定弄好,也能在登入的狀態下,換到不少的效能。
除了這兩項設定,$wgMainCacheType = CACHE_ACCEL;也很明顯,如果 CACHE_ACCEL 不適用,CACHE_DB 可以碰碰運氣,看看業者的 MySQL server 效能撐不撐的起來(但是別抱太大希望)。
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.