Hi first of all thanks for open source this plugin.
I could use some help with troubleshooting activating this plugin on our WooCommerce site (nginx, php7.0, mysql 5.7, everything on AWS).
I've installed wp-lcache
according to the installation guide (e.g. installed apcu
, created object-cache.php
file, activated the plugin). From what I can see the plugin is definitely running (no error message in backend).
Shortly after I've done above (3~5min), the website become unresponsive, even with low to moderate public traffic. Here are my observations when this happened:
- CPU load on web server (on php-fpm processes) is high but not too high to handle the traffic
- CPU load on mysql server (I'm on Amazon RDS, mysql 5.7) is stable to low
- DB connections on mysql server shoot thru the roof (connection increased from 3~5 to 200, probably capped by RDS itself)
- I can connect to the database via command line fine, the
wp_lcache_tags
table is empty, and wp_lcache_events
table has around 37k rows in about 5min after activated the plugin
- Here is the screenshot of the database server load around the time I tried to activate the plugin:
![Image of the database server load around the time I tried to activate the plugin](https://camo.githubusercontent.com/fbc44c93b20e05d0994ab07e67b4976eb859ee1a772f9353ac58297050966b0a/687474703a2f2f692e696d6775722e636f6d2f323977314f61592e706e67)
I rebooted the database server, again the db connection shoot up (this time capped at 100) but still unresponsive.
I removed the object-cache.php
and rebooted both web and db server, everything went back to normal.
With redis backed object caching plugins having various problems, I'd really like to take the advantage that this plugin offers, but I'm not sure what exactly is causing this problem. My best guess is wp-lcache
tries to "warm up" its cache table but due to the amount of data we have (again, WooCommerce site, with about 4000+ products, 40k+ orders, 25k+ media files and negligible amount of posts/pages), the plugin caused some problem with database and made the whole website unresponsive.
Any suggestions on how to pin down the problem?