Skip to content

Support for large catalogs#355

Open
scottyzen wants to merge 1 commit intomasterfrom
enhacement/large-stores
Open

Support for large catalogs#355
scottyzen wants to merge 1 commit intomasterfrom
enhacement/large-stores

Conversation

@scottyzen
Copy link
Owner

This pull request introduces support and documentation for using Incremental Static Regeneration (ISR) for large product catalogs (10,000+ products) in WooNuxt, making it easier to handle dynamic content efficiently. The changes include new environment variable configuration, updates to documentation, and adjustments to the Nuxt configuration to enable and control ISR for key catalog routes.

ISR support for large catalogs:

  • Added a new environment variable CATALOG_ISR_TTL (default: 3600 seconds) to control the cache lifetime for catalog routes in .env.example.
  • Updated woonuxt_base/nuxt.config.ts to read and validate CATALOG_ISR_TTL, defaulting to 3600 seconds if not set or invalid.
  • Configured Nitro routeRules in woonuxt_base/nuxt.config.ts to enable ISR for /product/**, /product-category/**, and /products/** routes, using the TTL from CATALOG_ISR_TTL.

Documentation updates:

  • Added a new section in README.md explaining how to set up ISR for large catalogs, including build instructions, route behavior, and platform-specific notes for Vercel and Netlify.

@netlify
Copy link

netlify bot commented Feb 16, 2026

Deploy Preview for sleepy-chandrasekhar-717c3d ready!

Name Link
🔨 Latest commit 52927f2
🔍 Latest deploy log https://app.netlify.com/projects/sleepy-chandrasekhar-717c3d/deploys/699397d92a5b1e0008f2020e
😎 Deploy Preview https://deploy-preview-355--sleepy-chandrasekhar-717c3d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@scottyzen scottyzen marked this pull request as ready for review February 16, 2026 22:20
@scottyzen scottyzen requested a review from Copilot February 16, 2026 22:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Incremental Static Regeneration (ISR) support for large WooCommerce catalogs in WooNuxt by introducing a configurable TTL and enabling ISR on key catalog routes, with accompanying documentation and example env configuration.

Changes:

  • Add CATALOG_ISR_TTL env var (default 3600s) and wire it into Nuxt/Nitro configuration.
  • Enable Nitro routeRules ISR for /product/**, /product-category/**, and /products/**.
  • Document recommended hybrid/ISR build approach for large catalogs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
woonuxt_base/nuxt.config.ts Parses CATALOG_ISR_TTL and applies it to Nitro ISR routeRules for catalog routes.
README.md Adds a “Large Catalog ISR Setup” section describing build mode and ISR behavior.
.env.example Documents the new CATALOG_ISR_TTL configuration with a default value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI commented Feb 16, 2026

@scottyzen I've opened a new pull request, #356, to work on those changes. Once the pull request is ready, I'll request review from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants