Key eviction best practices
-
Hi guys,
I run a fairly large WooCommerce site. I have configured redis with the widely recommended
allkeys-lfueviction strategy to avoid memory overflows, which has created some peculiar side effects with plugins & themes which do not correctly handle some of their transients being purged (eg. Enfold / Avia Theme Builder, Facebook for WooCommerce).My cache overflows regularly, seemingly caused by scrapers which crawl every category and attribute page on site for every permutation of WooCommerce
filter_{attribute}using residential proxies with rolling UAs and IPs. These requests flood the cache and cause legitimate entries to be purged (even withlfu).My questions are —
- Do you have any tools/scripts for analysing cache content/usage and identifying any particular page type or query that could be blowing out the cache more than necessary?
- Is there any way to tell this plugin to exclude certain request types / pages (ie. don’t cache any
wp_queryif the$_GETcontainsfilter_%? - Any other suggestions to tune the cache (eg.
volatile_lfu?), without adding infinite RAM 😅?
Thanks,
Jason
You must be logged in to reply to this topic.