ErrorsBuilt-in services · rule
connection.memory_cache
A cache connection keeps its cache in each server's own memory.
Area 16, Built-in services; declinable; the next step is usually the human's.
Why Jadpo refuses it
driver: Driver.memory keeps a cache in each server's own memory
(Cache drivers and what a cache may hold).
Each server then has a cache of its own, emptied on every restart, and a
change one server clears from its cache is still served by the others
until their entries reach their keep:. On one server that is fine; on
several it serves stale pages. Whether the app runs on one server is a
judgement call, so Jadpo reports it and lets a person decline it with a
reason.
What it looks like
application { connections: { cache: { driver: Driver.memory } }}
error cache keeps a cache in each server's own memory
--> app.jadpo:3:9
|3 | cache: { | ^^^^^ each server's own cache
- reason
cachehasdriver: Driver.memory, so each server keeps a cache of its own, lost on every restart, and a change one server clears from its cache is still served by the others until their entries reach theirkeep:. One server, or a Redis connection, keeps every copy current.- next
- Give
cachedriver: Driver.redisand aurl:, which every server shares, or writedecline connection.memory_cache: "<why>"above it if this is deliberate (human) - rule
- connection.
memory_ cache - help
- https://jadpo.
dev/docs/errors/connection. memory_ cache
(human) at the end of the next: line tells your coding agent to stop and ask you which fix you want, because the choice is yours to make.
How to fix it
If the app runs on several servers, keep the cache in Redis, which every server shares:
connections: { cache: { driver: Driver.redis url: config.redis_url } }
Every server then reads one cache, and a change any of them makes clears it for all.
If it runs on one server, decline it with the reason:
application { connections: { decline connection.memory_cache: "The shop runs on one server, so its one cache is every cache." cache: { driver: Driver.memory } }}
A Worker keeps no memory between requests, so a deployable built for
Workers is refused a cache in memory whatever the decline says
(deployable.target_unsupported).
Related
Markdown for agents: /docs/errors/connection.memory_cache.md.Built from Jadpo's main branch at commit 9080dc3.