During development of phpBB2 a recurring issue of server load has cropped up. phpBB 2.0.0 differs from many of its contemporaries by doing many more tasks at runtime. While this allows for simpler upgrade and modification paths it also leads to a greater strain being placed on the server. To help reduce this issue a cacheing template system was created based on work by Crimsonbane. This stores a compiled version of each template resulting in a generally significant reduction in server load and perhaps page generation time.
Two versions of the cacheing system are contained in this directory, one uses flat files the other a MySQL database. Testing has shown that, in general, the average virtual host seems to show better performance with the flat file solution. However this may not be the case for your system, so please feel free to try both.
In both cases you need to rename your existing template.php script (in includes/) and replace it with whichever template_*.php you want to try.
Mac 寫:可以先試試看一直收藏在 contrib 裡的 Template cacheing 修改法
contrib/README.html
Template cacheing
Authors: Crimsonbane, psoTFX and nathan
File Caching Updated
During development of phpBB2 a recurring issue of server load has cropped up. phpBB 2.0.0 differs from many of its contemporaries by doing many more tasks at runtime. While this allows for simpler upgrade and modification paths it also leads to a greater strain being placed on the server. To help reduce this issue a cacheing template system was created based on work by Crimsonbane. This stores a compiled version of each template resulting in a generally significant reduction in server load and perhaps page generation time.
Two versions of the cacheing system are contained in this directory, one uses flat files the other a MySQL database. Testing has shown that, in general, the average virtual host seems to show better performance with the flat file solution. However this may not be the case for your system, so please feel free to try both.
In both cases you need to rename your existing template.php script (in includes/) and replace it with whichever template_*.php you want to try.
三.
Q:是否有發現BUG?
A:有!當我進入系統管理控制台時,出現下列錯誤 -
Fatal error: Call to undefined function: clear_cache() in c:\appserv\www\admin\page_footer_admin.php on line 45
Q:有無解決方法?
A:目前沒有!