Skip to content

Commit c218a0a

Browse files
authored
feat(companion): Add caching, redesign ui, and refactor code (calcom#25654)
1 parent b9a0911 commit c218a0a

60 files changed

Lines changed: 7894 additions & 3547 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

companion/.env.example

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,26 @@ EXPO_PUBLIC_CALCOM_OAUTH_CLIENT_ID=your_oauth_client_id_here
33

44
EXPO_PUBLIC_CALCOM_OAUTH_REDIRECT_URI=your_oauth_redirect_uri_here
55

6+
# ===========================================
7+
# CACHE CONFIGURATION (all values in MINUTES)
8+
# ===========================================
9+
10+
# Default cache stale time for all queries (default: 5 minutes)
11+
EXPO_PUBLIC_CACHE_STALE_TIME_MINUTES=5
12+
13+
# Garbage collection time - how long to keep unused cache (default: 1440 minutes - 24 hours)
14+
EXPO_PUBLIC_CACHE_GC_TIME_MINUTES=1440
15+
16+
# Bookings cache stale time (default: 5 minutes)
17+
# After this time, data is considered stale and will refetch in background
18+
EXPO_PUBLIC_BOOKINGS_CACHE_STALE_TIME_MINUTES=5
19+
20+
# Event Types cache stale time (default: -1 = never stale)
21+
# -1 means data only refreshes on mutations (create/update/delete) or manual pull-to-refresh
22+
EXPO_PUBLIC_EVENT_TYPES_CACHE_STALE_TIME_MINUTES=-1
23+
24+
# Schedules (Availability) cache stale time (default: -1 = never stale)
25+
EXPO_PUBLIC_SCHEDULES_CACHE_STALE_TIME_MINUTES=-1
26+
27+
# User Profile cache stale time (default: -1 = never stale)
28+
EXPO_PUBLIC_USER_PROFILE_CACHE_STALE_TIME_MINUTES=-1

0 commit comments

Comments
 (0)