Quantcast
Channel: WordPress.org Forums » [Redis Object Cache] Support
Viewing all articles
Browse latest Browse all 111

high cpu in evening

$
0
0

Replies: 1

Hello, I am using redis object cache and wp rocket on my wp website. I don’t use woocommerce. I have normal blog website. In day time site runs fine. If I publish 5-7 posts then server load goes high. while checking I can see that mysql sql is using 300-500%

In evening time, without publishing a single post server load goes 500-800%. While checking mysql is using 500%+ cpu. If redis cache is working then why mysql is using high cpu? I am using below lines in wp-config:

define( ‘WP_REDIS_HOST’, ‘127.0.0.1’ );
define( ‘WP_REDIS_PORT’, 6379 );
define( ‘WP_REDIS_PASSWORD’, ‘7a98765287’ );
define( ‘WP_REDIS_TIMEOUT’, 1 );
define( ‘WP_REDIS_READ_TIMEOUT’, 1 );
//change the database for each site to avoid cache collisions
define( ‘WP_REDIS_DATABASE’, 0 );
// supported clients: phpredis, credis, predis and hhvm
define( ‘WP_REDIS_CLIENT’, ‘predis’ );

what wrong I have done? I am not getting. Can you please help? Or should I use memcached? In phpmyadmin advisor it is written to use memcached for query caching. I am confused. Please help.


Viewing all articles
Browse latest Browse all 111

Trending Articles