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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top