fix(sync): proxy cache staleness follows the server's frame version only
Frames the server has neither proxy nor thumbnail for no longer re-queue the proxy download at every comparison. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
1 file changed
+5
-2
@@ -100,8 +100,11 @@ public sealed record SyncLink
|
||||
|
||||
public bool ServerHasProxies => (RemoteStatus & SequenceStatus.ProxiesBuilt) != 0;
|
||||
|
||||
/// <summary>The proxy cache misses frames the server has, or predates its last frame change.</summary>
|
||||
public bool ProxiesStale => ProxiesCached < FrameCount || ProxiesFramesVersion != RemoteFramesVersion;
|
||||
/// <summary>
|
||||
/// The proxy cache was never completed or predates the server's last frame change (frames the server has no
|
||||
/// proxy or thumbnail for stay missing until their frames change, so they are not fetched again and again).
|
||||
/// </summary>
|
||||
public bool ProxiesStale => ProxiesFramesVersion != RemoteFramesVersion;
|
||||
}
|
||||
|
||||
/// <summary>One row of the sync table: the local sequence, the server sequence, or both, and where they stand.</summary>
|
||||
|
||||
Reference in new issue
Block a user