Commit 99b9cf4
[1.1.1.1] Add NSLookup caching to dns-in-google-sheets.mdx (#17298)
* Update dns-in-google-sheets.mdx to include cache support in the NSLookup function.
Adding internal caching of the results on the NSLookup function to limit the number of the DNS resolver requests and speed up the results - especially in larger Google Sheets.
* Process suggested changes for Answer TTL and usecache disabled by default
* Change how minCacheTTL is set
- Change minCacheTTL from Math.min to Math.max
- Change default value of cachettl from 1800 to 30.
* Minor code style - change tab to spaces.
* Apply patch + rename usecache to useCache
Applying changes from #17298 (comment) + rename usecache to useCache to make all variables/constants follow lowerCamelCase.
* Remove outdated cache value from descriptive paragraph
* Replace one remaining var by const
---------
Co-authored-by: Rebecca Tamachiro <[email protected]>1 parent 90a7cc3 commit 99b9cf4
File tree
1 file changed
+42
-12
lines changed- src/content/docs/1.1.1.1/other-ways-to-use-1.1.1.1
1 file changed
+42
-12
lines changedLines changed: 42 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
30 | 52 | | |
31 | 53 | | |
32 | 54 | | |
33 | 55 | | |
34 | 56 | | |
35 | 57 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
39 | 61 | | |
40 | 62 | | |
41 | 63 | | |
42 | 64 | | |
43 | 65 | | |
44 | | - | |
| 66 | + | |
45 | 67 | | |
46 | 68 | | |
47 | 69 | | |
| |||
54 | 76 | | |
55 | 77 | | |
56 | 78 | | |
57 | | - | |
| 79 | + | |
58 | 80 | | |
59 | 81 | | |
60 | 82 | | |
61 | 83 | | |
62 | 84 | | |
63 | | - | |
| 85 | + | |
| 86 | + | |
64 | 87 | | |
65 | | - | |
| 88 | + | |
66 | 89 | | |
| 90 | + | |
| 91 | + | |
67 | 92 | | |
68 | 93 | | |
69 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
70 | 99 | | |
71 | 100 | | |
72 | 101 | | |
| |||
76 | 105 | | |
77 | 106 | | |
78 | 107 | | |
| 108 | + | |
79 | 109 | | |
80 | 110 | | |
81 | 111 | | |
| |||
0 commit comments