I seem to be having old extraneous results that are polluting database queries I make. What kind of caching is enabled for the stack Express.js > Mongoose.js? Is there a way to disable it or clear it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Express has ‘view cache’ enabled by default in ‘production’ mode.
Checkout the code for that here: https://github.com/visionmedia/express/blob/master/lib/application.js#L532-557
Other than that you might be using the connect-static middleware, which has browser cache.
As far as I know and from what I’ve looked at the Mongoosejs code, I didn’t see any caching stuff there.