mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-24 10:09:01 -06:00
The album rows read their counts from Caches::album_counts, recomputed only when the catalog revision changes (photos, metadata and album rules all bump it) and, while a smart album uses an "in the last..." rule, when the session clock enters a new minute. Catalog::album_count counts smart-album matches in place instead of building the id list for its length. RuleSet/Filter::depends_on_now tell clock-relative rules apart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>