REST API caching
Cache REST API responses for 1 minute up to 1 month so pages load fast and the external API is called less.
Each REST request has a Cache setting. When set, the response is stored in Redis and served from there until the duration ends. The cache key includes the request id, its last update time, the properties and the final URL, so changing the request or passing different properties produces a fresh call.
How it works
- Options in the UI: None, 1 Minute, 5 Minutes, 15 Minutes, 30 Minutes, 1 Hour, 6 Hours, 12 Hours, 1 Day, 7 Days, 15 Days, 1 Month (values in seconds 0 to 2592000).
- Server clamps the value to 0..2592000 seconds (30 days).
- Only successful responses are used for source/variable output (execute(..., successOnly=true)).
- The UI says 'Source must be enabled'; caching applies to source and variable execution.
- Editing the request changes 'updated', which invalidates the old cache entry.
- Airtable has its own cache duration setting (None up to 7 Days). Strapi sources are not cached. Shopify products are live calls (recache only stores a product list for the admin).
When to use it
- Cache a slow third-party API for an hour
- Keep API usage under a provider's rate limit
Limitations
- Maximum 30 days
- No manual 'clear cache' button for a single request; editing the request invalidates it
- The 'Run API' button in the editor always calls the API (no cache)
Availability
- Works in Designer.
- Included in every plan.
- Limits: 0 to 2592000 seconds
How to use it.
- Open the request
- Enable Source
- Pick a Cache duration
Questions.
How do I refresh cached data early?
Related features.
Connect any REST API
Create GET, POST, PUT or DELETE requests to any external REST API and use the response on your site.
Visually connect API data in the builder
Turn any REST request into a data source and bind elements to it in the builder, with repeat, filters, sort and pagination.
Airtable integration
Use Airtable bases as a database for your site: every table becomes a builder data source with filters and sort.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→