1
00:00:01,000 --> 00:00:04,000
And that's now it for this section.

2
00:00:04,000 --> 00:00:06,000
In this section, you learned a lot about

3
00:00:06,000 --> 00:00:11,000
the behind-the-scenes work NextJS does when it comes

4
00:00:11,000 --> 00:00:16,000
to caching data and avoiding unnecessary requests.

5
00:00:16,000 --> 00:00:19,000
You learned that there is a lot of built-in functionality

6
00:00:19,000 --> 00:00:21,000
when using the fetch function

7
00:00:21,000 --> 00:00:24,000
to get data from an external API.

8
00:00:24,000 --> 00:00:27,000
And you learned how you can control how that data

9
00:00:27,000 --> 00:00:30,000
will be revalidated and when the cache will be revalidated,

10
00:00:30,000 --> 00:00:35,000
and pages that use cache data will be rerendered there for.

11
00:00:35,000 --> 00:00:38,000
But you also learned how to manage your own cache

12
00:00:38,000 --> 00:00:40,000
and how to enable request deduplication

13
00:00:40,000 --> 00:00:42,000
when using your own data source,

14
00:00:42,000 --> 00:00:44,000
like here, where I'm using a database.

15
00:00:44,000 --> 00:00:47,000
With help of the cache function provided by React

16
00:00:47,000 --> 00:00:50,000
for request deduplication,

17
00:00:50,000 --> 00:00:52,000
and with help of the unstable cache function

18
00:00:52,000 --> 00:00:56,000
provided by Next to cache data in the data cache,

19
00:00:56,000 --> 00:00:58,000
and therefore, also allow NextJS

20
00:00:58,000 --> 00:01:00,000
to perform aggressive caching

21
00:01:00,000 --> 00:01:03,000
when using your own data source.

22
00:01:03,000 --> 00:01:06,000
And you also learned how to revalidate that cache data,

23
00:01:06,000 --> 00:01:11,000
either with revalidate path or revalidate tag.

24
00:01:11,000 --> 00:01:13,000
Now, as mentioned at the beginning of this section,

25
00:01:13,000 --> 00:01:17,000
you can dive deeper into caching and all the details

26
00:01:17,000 --> 00:01:20,000
and all the behind-the-scenes stuff if you wanna learn

27
00:01:20,000 --> 00:01:24,000
all about it with help of the official documentation.

28
00:01:24,000 --> 00:01:25,000
But you don't need to do that.

29
00:01:25,000 --> 00:01:26,000
You just should know

30
00:01:26,000 --> 00:01:29,000
that NextJS does perform aggressive caching.

31
00:01:29,000 --> 00:01:32,000
And you should know which tools and options you have

32
00:01:32,000 --> 00:01:35,000
for making sure that data is refetched

33
00:01:35,000 --> 00:01:39,000
and pages are rerendered when you need them to be rerendered

34
00:01:39,000 --> 00:01:42,000
and when you need the data to be refetched.

