Skip to content

ETag cache folder created in Documents directory instead of Caches on macOS #5997

@FelixLisczyk

Description

@FelixLisczyk

Describe the bug

Some of my users have reported a new folder appearing in their Documents directory on macOS: <bundleID>.revenuecat.etags

This seems to be caused by PR #5917, which moved ETag storage from UserDefaults to file-based caching. The issue is that SynchronizedLargeItemCache uses createDocumentDirectoryIfNeeded instead of createCacheDirectoryIfNeeded, so the cache ends up in Documents rather than Library/Caches.

Two questions:

  1. Is this folder safe for users to delete?
  2. Should this be using the Caches directory instead?

Platform

macOS

SDK version

5.51.1

SDK integration method

Swift Package Manager

StoreKit version

StoreKit 2

OS version

macOS 26.2

Xcode version

26.2

Device and/or simulator

Device

Environment

Production

How widespread is the issue

All macOS users on 5.51.1 or later see this folder

Metadata

Metadata

Assignees

No one assigned

    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