performance

Boost cache module health and tips

Boost cache module 是我常用的提升效能的模組
好處是搭建簡單, 幾乎能使用 Drupal 的環境都可以使用
也不需要 shell 的權根
但效能上沒有 vanish 的好

關於 boost 的效能, 最重要的是正確的 cron job
正確的cron 可以確保 boost 產生的檔案和資料夾在過期的情況之下清走
否則 cache 資料夾內的檔案數量很快會直線增加
反倒拖慢了網站

cron 的運行密度起碼需要和 boost 的 expire time 一致
甚至更短
例如本站的 cache 是 1小時 expire, cron 是15分鐘

其餘比較重要的是
Clear all empty folders from cache
和時常留意 "Clear Boost expire data: X page" 的數字
我也有見過 250K PV/m 的網站仍可以使用 boost 的

Google