mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
The cached path of the media-storage-bytes-per-team quota reads the team_storage_usage counter, and that counter only stays true while somebody marks the teams dirty. That somebody is the events consumer: with its flag off nobody refreshes the counter and the quota reads a frozen value, so it lets uploads over the limit pass without a word. The failure is permissive, which is the one this work came to fix. The cached path needs the :event-consumer flag too, next to :storage-usage and :audit-log. Without it the quota falls back to the live sum: slow on big teams, but true. AI-assisted-by: minimax-m3.1-flash