File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,13 @@ request to the tito API and return the results. It will also cache the results
72
72
in the ` cache ` (which is the SQLite cache). The next time you call
73
73
` getScheduledEvents ` it will return the cached value if the cached value is less
74
74
than 30 days old. If the cached value is older than 24 hours, it will also make
75
- a request to the tito API in the . If the cache value is more than 30 days old,
76
- it will wait until the tito request is complete and then return the fresh value.
75
+ a request to the tito API. If the cache value is more than 30 days old, it will
76
+ wait until the tito request is complete and then return the fresh value.
77
77
78
78
Bottom line: You make the request much less often and users are never waiting
79
- for it.
79
+ for it. Every situation will require you think through the implications of
80
+ caching and acceptable stale-ness, but the point is you have those levers to
81
+ pull.
80
82
81
83
A lot more needs to be said on this subject (an entire workshop full!), but this
82
84
should be enough to get you going!
You can’t perform that action at this time.
0 commit comments