Stack Matrix Hub (8)
Catalog Search & Faceted Price Reindexing Without 504 Timeouts
Run ps_facetedsearch price indexing and PrestaShop search rebuilds via CLI cron instead of browser Admin timeouts.
CLI php bin/console · 0 Web Timeouts · 150k SKUs
Why Browser-Triggered Reindexing Fails Past 20,000 SKUs
Clicking "Rebuild Entire Index" inside the PrestaShop Back Office binds a single HTTP PHP-FPM worker for minutes at a time, hitting proxy request_terminate_timeout or Cloudflare 100-second limits long before 100,000 SKUs finish.
Deterministic CLI Cron Scheduling
Trigger search and ps_facetedsearch URL cron tokens via local curl or PHP CLI during low-traffic hours with Innodb flush_log_at_trx_commit = 2 to complete 150k-SKU refreshes cleanly.
Measured Thresholds & Configuration
| Catalog Size | Web Admin Reindex | CLI / Local Cron | InnoDB Flush Setting |
|---|---|---|---|
| 10k SKUs | 28 sec (Risky) | 14 sec (Safe) | trx_commit = 2 |
| 50k SKUs | 504 Timeout | 68 sec (CLI Safe) | trx_commit = 2 |
| 150k SKUs | 504 Timeout | 210 sec (Batched CLI) | trx_commit = 2 + 6-8G Pool |