I
I
ince2019-12-18 16:04:35
Node.js
ince, 2019-12-18 16:04:35

Require should be cached?

itvdn.com/ru/blog/article/10commandments-nodejs I came
across an article, it contains the phrase "Require must be cached".
What does this mean?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-12-18
@ince

The fact that either this is a very crooked translation or the author has problems with the presentation of thoughts, or both.
Read the spec on require and that's it. There is also about "caching" and about "the code will be executed once".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question