prerender-mongodb-cache icon indicating copy to clipboard operation
prerender-mongodb-cache copied to clipboard

Prerender plugin for MongoDB caching

Results 7 prerender-mongodb-cache issues
Sort by recently updated
recently updated
newest added

Hi, @lammertw. I was reviewing this plugin and found it may not be providing the tiered priority caching benefits via `cache-manager` that you expect. You will find in the `cache-manager`...

The docs state it uses the collection "prerender" but it seems to be using "pages"? database.collection('pages' ... What should it be?

This is because prerender does some extra wrangling on the url, removing _escaped_fragment_ and so on

As MongoDB already has a feature to expire data, you could add that to your Readme or to the plugin itself. Here are the docs for it: http://docs.mongodb.org/manual/tutorial/expire-data/

Randomly occurs: ``` /var/www/prerender/node_modules/prerender-mongodb-cache/lib/mongoCache.js:46 │······························································ database.collection('pages', function(err, collection) { │······························································ ^ │······························································ TypeError: Cannot call method 'collection' of undefined │······························································ at Object.mongo_cache.get (/var/www/prerender/node_modules/prerender-mongodb-cache/lib/mongoCache.js:46:18) │······························································ at Object.module.exports.beforePhantomRequest (/var/www/prerender/node_modules/prerender-mongodb-cache/lib/mongoCache.js:28:20) │······························································ at next...

Hey there, i just added prerender-mongodb-cache to my application and all i get is a Cannot read property 'url' of undefined. Can someone help me? these are my dependencies... "dependencies":...