File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import recaptchaInterceptor from "./interceptors/recaptcha";
5
5
6
6
const axios = setupCache ( Axios , {
7
7
methods : [ "post" ] ,
8
- ttl : 1000 * 60 * 10 ,
8
+ ttl : 1000 * 60 * 20 ,
9
9
} ) ;
10
10
11
11
axios . defaults . timeout = 1000 * 10 ;
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ async function fetchAttachment(encryptId: string): Promise<any> {
14
14
} ,
15
15
{
16
16
timeout : 15 * 1000 ,
17
+ cache : {
18
+ ttl : 1000 * 60 * 60 * 2 ,
19
+ } ,
17
20
}
18
21
) ;
19
22
return response . data ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ async function fetchCourses(): Promise<Course[]> {
12
12
cache : {
13
13
// This route is not expected to change frequently
14
14
// So we can cache it for a long time
15
- ttl : 1000 * 60 * 30 ,
15
+ ttl : 1000 * 60 * 60 * 2 ,
16
16
} ,
17
17
} ) ;
18
18
You can’t perform that action at this time.
0 commit comments