You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cache: store empty arrays instead of refusing them #15702
Every utopia-php/cache adapter refuses to store an empty array. save() starts with if (... || empty($data)) return false;, and Cache::saveWithLease() has the same check. The caller gets false with no error, and the next load() is a miss, so an empty result (no WAF rules, an empty HIBP range, a JWKS with no usable keys) is fetched from its source again on every request.
Let [] be stored. '' and '0' stay refused as today.
Filesystem and Storage are left unchanged. They store strings and join arrays, so a stored [] would read back as '', and they keep refusing empty values.
Callers checked
Every write in appwrite/appwrite, appwrite-labs/cloud, appwrite-labs/edge, utopia-php/database (7.3.9 and 10.1.4) and the absorbed packages was traced. None relies on [] being refused, and none can serve a stale empty array that is never invalidated. These callers gain:
changed the title [-]cache: store empty values ([], '', '0') instead of refusing them[/-][+]cache: store empty arrays instead of refusing them[/+]on Nov 17, 2026
Activity
[-]cache: store empty values ([], '', '0') instead of refusing them[/-][+]cache: store empty arrays instead of refusing them[/+]