Troubleshooting & Performance

Optimizing Large Catalogs (10K–50K+ Products), Static Header/Footer Caching, and Redis

Published 2026-12-04 03:20:21

High-Scale Performance Architecture

Site Store Pro is engineered for catalogs with 10,000 to 50,000+ products and 250,000+ variants using composite covering indexes, deferred Livewire catalog loading, capped attribute facet extraction, single-query category product counts, and optimized 10K+ review moderation queries.

Production Performance Checklist

  1. Ensure all database migrations are applied: Run php artisan migrate so all composite performance indexes on products, product_variants, product_images, products_inventory, product_categories, and product_reviews are active.
  2. Enable Static Header & Footer Caching: Build the static cache from /admin/cms-header-footer or via CLI:
    php artisan cms:rebuild-header-footer-cache
    This cuts 16–28 dynamic header/footer queries per page load down to 0 queries while keeping the shopping cart badge, language switcher, dark mode toggle, and mobile drawer 100% reactive.
  3. Cache Laravel config, routes, and views:
    php artisan config:cache
    php artisan route:cache
    php artisan view:cache
  4. Use Redis for Sessions, Cache, and Queues: Install the PHP redis extension (or predis/predis) and set CACHE_STORE=redis, SESSION_DRIVER=redis, and QUEUE_CONNECTION=redis in .env.
  5. Tune Filter Drawer Options for Massive Catalogs: If your catalog has hundreds of variant attributes and you don't need attribute checkboxes in the catalog sidebar, turn off enable_advanced_shop_search_attributes in /admin/settings.

Fixing "Class Redis not found"

If you see Class "Redis" not found after enabling Redis, either install the PHP extension (sudo apt install php8.3-redis and restart PHP-FPM) or switch REDIS_CLIENT=predis in .env (after running composer require predis/predis), or temporarily set CACHE_STORE=database and SESSION_DRIVER=database.

Was this article helpful?

Let us know how we can improve our documentation.