Improve the frontend 3
This commit is contained in:
@@ -42,6 +42,15 @@ export class SubscriptionService {
|
||||
// NEW METHODS - Centralized Plans API
|
||||
// ============================================================================
|
||||
|
||||
/**
|
||||
* Invalidate cached plan data
|
||||
* Call this when subscription changes to ensure fresh data on next fetch
|
||||
*/
|
||||
invalidateCache(): void {
|
||||
cachedPlans = null;
|
||||
lastFetchTime = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch available subscription plans with complete metadata
|
||||
* Uses cached data if available and fresh (5 min cache)
|
||||
|
||||
Reference in New Issue
Block a user