What caching is enabled by default when using Express and Mongoose

I seem to have some old extraneous results that handle database queries. What caching is enabled for the Express.js> Mongoose.js stack? Is there any way to disable it or clear it?

+4
source share
1 answer

Express has a "cache view" enabled by default in the "production" mode. Checkout the code for this here: https://github.com/visionmedia/express/blob/master/lib/application.js#L532-557

In addition, you can use middleware-static middleware , which has a browser cache.

As far as I know, and from the fact that I looked at the Mongoosejs code, I did not see caching there.

+5
source

Source: https://habr.com/ru/post/1384529/


All Articles