Pre-rendering and caching of Reaction Commerce Products for better SEO, using Chrome Headless
Clone or download
Latest commit c7a25da Feb 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
server initial pr Feb 14, 2018
.gitignore readme gitignore Feb 14, 2018
README.md changes Feb 14, 2018

README.md

Reaction Commerce Caching Plugin

Allows for Meteor Spiderable caching of products through Chrome Headless

This plugin is used in conjunction with Meteor Chrome Headless Spiderable

Installation

  1. Copy/Clone folder to plugins/custom.
  2. Install artlimes:meteor-chrome-headless-spiderable by running meteor add artlimes:meteor-chrome-headless-spiderable
  3. 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.