wordpress app在wampserver 2.5 localhost上工作得非常慢

时间:2017-07-17 12:05:56

标签: wordpress performance woocommerce wampserver

我做了很多改动,但总是主页需要5秒才能加载,后端也会更慢

我的电脑是CORE 2 DUO 2GH CPU& 2G RAM窗口7 32位WampServer 2.5

我已禁用Cgi_module

我已将localhost更改为System32 / etc / hosts中的127.0.0.1

我更新了这个定义('DB_HOST','127.0.0.1');在wp-config中

我已将php.ini中的内存限制增加到512

我重启服务器但没有改变

知道我使用woocommerce插件 我有另外两个没有cms的应用程序(本机php,mysql),它们工作得很快

更新:

我做了那些mysql调优更新:

# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 1024M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 256M
innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

[mysqld]
port=3306
explicit_defaults_for_timestamp = TRUE

0 个答案:

没有答案