我有一个运行PHPBB 3.0.11(最新版本)的网站,但首次访问时使用空缓存,需要4-5秒才能加载。之后,它在几秒钟内加载!有任何想法吗?首页加载速度缓慢PHPBB 3.0.11
论坛:http://takeahike.org.uk/forum
感谢
我有一个运行PHPBB 3.0.11(最新版本)的网站,但首次访问时使用空缓存,需要4-5秒才能加载。之后,它在几秒钟内加载!有任何想法吗?首页加载速度缓慢PHPBB 3.0.11
论坛:http://takeahike.org.uk/forum
感谢
感谢您们的帮助,我找到了问题所在。事实证明,这是因为我有一个非常大的禁止ip列表,我猜phpbb在初始页面加载时将它们加载并将它们存储在某个地方。
貌似延迟只是在一个文件中,即在头版,只是在第一次,因此在这里没有缓存的问题:
只是几个问题:
.htaccess
乱七八糟?xdebug
来剖析应用程序的执行?我有一些关于如何使phpbb方式更快的信息,我的论坛的加载速度比以前快两倍,所以我发布这里,希望我的评论对你们中的一些读者有用..如果你的论坛更容易解决问题加载速度更快,从超过30秒的最大执行时间超过并更容易调试您的论坛将很难得到众所周知的白色屏幕..大多数时间这些错误是从修改确保所有mods和phpBB论坛脚本是最新的..
首先,如果你有很多项目在你的禁止名单或大量的成员,那么你的论坛将打破,并为您提供奇怪的错误和白色屏幕,我相信这不是你想看到的;)
如何解决和从哪里开始:
打开config.php文件和编辑它看起来像下面
<?php
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'mysqli'; // What kind of database do you use?
$dbhost = 'localhost'; // Your host for most of us localhost will work just fine..
$dbport = ''; // Only needed if a non-standard port is used...
$dbname = 'YOUR-DATABASE-NAME';
$dbuser = 'YOUR-USERNAME';
$dbpasswd = 'YOUR-PASSWORD';
$table_prefix = 'phpbb_';
$acm_type = 'memcache'; // Standard is apc or file, change this to memcache but first you slould make sure it's installed and working corectly!!
// Add the lines below and: DO NOT CHANGE ORDER!
@define('PHPBB_ACM_MEMCACHE_HOST', 'localhost'); // Memcache server hostname
@define('PHPBB_ACM_MEMCACHE_PORT', 11211); // Memcache server poort
@define('PHPBB_ACM_MEMCACHE_COMPRESS', false); // Compress stored data true or false if used CPU usage will grow but bandwidth will be lower I use it on a 8core server..
$load_extensions = 'memcache';
@define('PHPBB_INSTALLED', true);
// @define('DEBUG', true); // uncommend to debug, it will give you a lot of information - do not remove if forum is working well
// @define('DEBUG_EXTRA', true); // uncommend to debug, it will give you a lot of information - do not remove if forum is working well
?>
访问您的phpBB论坛,并享受更高的速度
注1: $ load_extensions ='memcache';必须后的ACM_MEMCACHE设置
注2:我希望这是一些您的phpBB的用户非常有用的消息 - 编辑config.php文件之前,请确保您创建的备份文件的和确保memcache正在工作和在php.ini中启用,请使用corect路径进行memcache。所以,找到corect内存缓存路径,并添加完整路径到memcache.so到的php.ini文件
你有做你的主板的任何修改?链接到您的论坛可能会有所帮助.. – wadie
没有安装mod,我已经更新了与论坛链接的问题,谢谢 –
这是否发生 - 使用相同的代码 - 只需在该服务器中,或在本地主机或其他主机呢? 我第一次加载论坛,花了大约三秒钟,但如果我加载索引或任何其他页面,它加载就好! – wadie