Allows for Meteor Spiderable caching of products through Chrome Headless
This plugin is used in conjunction with Meteor Chrome Headless Spiderable
- Copy/Clone folder to
plugins/custom
. - Install artlimes:meteor-chrome-headless-spiderable by running
meteor add artlimes:meteor-chrome-headless-spiderable
- to cache all your existing visible products open DevTools and run the following in the console:
Meteor.call("caching/allProducts");
// OR
Meteor.call("caching/allProducts", productId);
// OR
Meteor.call("caching/allProducts", productSlug);
This is a convenience method to cache all your visible Product(s). Note that each visible product will get cached automatically after every publish.