Skip to main content
Question

Could customerInfo be cached for a year?

  • September 17, 2025
  • 3 replies
  • 48 views

Forum|alt.badge.img+5

 This code checks to see if a customer should be shown the  paywall.

         



let customerInfo = try await Purchases.shared.customerInfo(fetchPolicy: .fetchCurrent)
let timeInterval = Date.now.timeIntervalSince(customerInfo.firstSeen)
let ninetyDays: TimeInterval = 90 * 24 * 60 * 60
return timeInterval >= ninetyDays

This check is returning false.

On the RevenueCat dashboard for this user first seen was 27 June 2024. They never changed their App User ID. However they only seen the paywall today 17 September 2025. Which is much greater than the 90 days. 

What could be causing the delay in showing the paywall? I appreciate that the customerInfo could be cached but not for over a year.

This post has been closed for comments

3 replies

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • September 19, 2025

Hi ​@t1esto,

The customer info should be cached for 5 minutes, you can check the docs here.

Do you have analytics on the user’s logging sessions? Do you know if it’s been returning false all this time or could this be the first time it logged in for a year?

 

Best,


Forum|alt.badge.img+5
  • Author
  • Member
  • September 20, 2025

Hi ​@t1esto,

The customer info should be cached for 5 minutes, you can check the docs here.

Do you have analytics on the user’s logging sessions? Do you know if it’s been returning false all this time or could this be the first time it logged in for a year?

 

Best,

Yes I do. The app submits to my backend db every 24 hours to track. They launch the app every day and have always kept it updated to latest version. However for some reason despite them (not all) exceeding the 90 days. The paywall goes full screen and has no close button so only way to dismiss it is to either start a trial or pay. They and few others do neither and their daily logging of use to my backend keeps increasing. 
 

I even log that they see the paywall. However somehow they continue to use the application daily. Despite the logic to display the paywall over all content. 


joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • September 26, 2025

Hi ​@t1esto,

Would you be able to send the user id through a private message? I’ve been testing on my sample apps and accounts and I can see it working correctly.

 

Best,