Skip to content

Flush() doesn't upload all cached files data #109

@arlyxiao

Description

@arlyxiao

There are some old and history event data in the cache folder
C:\Users\myuser\AppData\Local\segment.data.

It will only upload the latest generated cached file when Flush() is called.
The old file data would not be uploaded.

For instance, the two files are generated before. but it's not uploaded when Flush() is called.
1727165687060

Also, one question from this:
How does Flush() work?

It doesn't scan the cached folder according to the source code?

https://github.com/segmentio/Analytics-CSharp/blob/main/Analytics-CSharp/Segment/Analytics/Analytics.cs

public virtual void Flush() => Apply(plugin =>
{
    if (plugin is EventPlugin eventPlugin)
    {
        eventPlugin.Flush();
    }
});

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions