Caching, the index table and operations
Filtering asks the database a lot of questions. Several caching layers keep that affordable, and the Cache and URLs tab shows their state and the controls for clearing them.
What is cached

| Cached | Lifetime | Cleared by |
|---|---|---|
| Rendered term trees | One hour by default, configurable | Any term change, immediately |
| Facet counts | Five minutes | Time |
| Price bounds | Five minutes | Time |
| Variant option lists | Five minutes | Time |
Term-based caches are versioned rather than deleted. Creating, editing or deleting a term, or changing term metadata, bumps a version number, and every fragment built under the old version is superseded at once. There is no window in which a stale tree can be served.
The index table
IvaSure maintains its own table of which products carry which terms. Filtering can answer from that instead of from a chain of joins, which is what keeps a large catalogue responsive.
A bounded repair job runs on cron and rebuilds the table in slices, so a large catalogue does not have to be rebuilt in one request. The tab shows index health and lets you start a repair by hand.
When something looks stale
- Wait five minutes. Counts, price bounds and variant lists are on a timer, and most reports of a wrong count are a cache that has not turned over yet.
- Check the term actually changed. A term edit bumps the version immediately; a product edit does not.
- Clear the caches from the Cache and URLs tab if it still looks wrong.
- Repair the index if counts are right but the store feels slow.
Rate limiting
The REST endpoint that serves live filtering is rate limited per minute - more generously for signed-in users than for anonymous ones. A shopper who trips it keeps the products already on screen rather than being shown an error, and the next request works.
Was this page helpful?