File tree Expand file tree Collapse file tree
purchases/src/main/kotlin/com/revenuecat/purchases/common/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,11 +165,11 @@ internal class WorkflowsCache(
165165 }
166166
167167 /* *
168- * Drops persisted envelopes whose workflowId is no longer in the latest list. This is the
169- * keyed-map equivalent of how [com.revenuecat.purchases.common.offerings.OfferingsCache] stays
170- * bounded by wholesale-replacing its single response blob: the persisted set always equals what
171- * the latest backend response says exists, so workflows the backend stopped sending don't
172- * linger on disk .
168+ * Drops persisted envelopes whose workflowId is no longer in the latest list. Because only
169+ * successfully-prefetched workflows are ever written here (see [cacheWorkflowDetailEnvelope]),
170+ * this prune removes stale prefetch envelopes for workflows the backend has stopped sending.
171+ * It is the keyed-map equivalent of how [com.revenuecat.purchases.common.offerings.OfferingsCache]
172+ * stays bounded by wholesale-replacing its single response blob .
173173 */
174174 @Synchronized
175175 private fun pruneWorkflowDetailEnvelopesToList (workflowIds : Set <String >) {
You can’t perform that action at this time.
0 commit comments