Skip to content

Option to cache live messages only in synced chats #100

Open

Description

@neoromantic

While the daemon runs, it caches every message that arrives live, in every chat, including chats whose sync is off (docs/sync-strategy.md). For someone in busy large groups and channels, this is probably what grows a cache the most, and turning a chat off doesn't stop it.

Proposed: a setting that keeps live messages only for chats with sync on, per account (cache.liveMessages: all|synced, default all as today), and a per-chat override with tg chats sync. Messages already cached stay. Measure first how much of a made-up busy account's growth comes from chats with sync off.

Done when e2e tests show that with synced a live message in a chat with sync off isn't cached and one in a synced chat is, and the docs describe the setting. Related: #80.

Activity

  1. added
    enhancement
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions