Performance and caching
Imported from GitHub issue El-SaMa/lamoi-waas#19 by @El-SaMa.
Tasks
- Full-page cache per host (nginx FastCGI cache keyed by host, or Photon; decide in ADR), bypass for logged-in users and Woo cart/checkout; purge on publish via connector
cache.purge. - Redis object cache with per-site isolation; transients cleanup.
- Images: WebP/AVIF generation, lazy loading, size limits on upload.
- Optional CDN for static assets.
- Load test: 200 subsites with realistic content on staging; record requests/s, p95 TTFB, CPU and RAM; capacity rule (sites per node) in the ADR.
Acceptance criteria
- p95 TTFB under 300 ms for cached pages and under 800 ms uncached on the test set.
Depends on
#2.
Plan key W24. Epic: El-SaMa/lamoi-waas#25.