Reduced minimum cache TTL for Workers KV to 30 seconds
The minimum cacheTtl parameter for Workers KV has been reduced from 60 to 30 seconds for both get() and getWithMetadata() methods, enabling finer-grained control over cache behavior and faster data refresh rates. The default cache TTL remains at 60 seconds, and users need to upgrade Wrangler to use the new 30-second minimum.
The minimum cacheTtl parameter for Workers KV has been reduced from 60 seconds to 30 seconds. This change applies to both get() and getWithMetadata() methods.
This reduction allows you to maintain more up-to-date cached data and have finer-grained control over cache behavior. Applications requiring faster data refresh rates can now configure cache durations as low as 30 seconds instead of the previous 60-second minimum.
The cacheTtl parameter defines how long a KV result is cached at the global network location it is accessed from:
// Read with custom cache TTL
const value = await env.NAMESPACE.get("my-key", {
cacheTtl: 30, // Cache for minimum 30 seconds (previously 60)
});
// getWithMetadata also supports the reduced cache TTL
const valueWithMetadata = await env.NAMESPACE.getWithMetadata("my-key", {
cacheTtl: 30, // Cache for minimum 30 seconds
});
The default cache TTL remains unchanged at 60 seconds. Upgrade to the latest version of Wrangler to be able to use 30 seconds cacheTtl.
This change affects all KV read operations using the binding API. For more information, consult the Workers KV cache TTL documentation.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for macOS 2026.8.2100.0
GA release for macOS Cloudflare One Client with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster connects with lower memory use, and numerous reliability fixes across DNS, reauthentication, and client stability.
Cloudflare One Client for Windows 2026.8.2100.0
This GA release improves split tunnel reliability, adds support for non-RFC 1918 local networks, optimizes connection performance with faster reconnections and lower memory usage, and includes numerous bug fixes for DNS, registration, and network handling. The client now features a service recovery mechanism that automatically restarts on system unlock and better handles large hosts files without blocking traffic.
Cloudflare One Client for Linux 2026.8.2100.0
New GA release for Linux with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster tunnel reconnections, and lower memory usage. Includes numerous stability and reliability fixes for DNS, reconnection behavior, and crash issues.