-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
.vscode | ||
.idea | ||
.c9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
Installation | ||
-------------------- | ||
# Reaction Commerce Caching Plugin | ||
Allows for Meteor Spiderable caching of products through Chrome Headless | ||
|
||
1.Copy/Clone folder to plugins/custom. | ||
This plugin is used in conjunction with [Meteor Chrome Headless Spiderable](https://github.com/artlimes/meteor-chrome-headless-spiderable) | ||
|
||
2.Install artlimes:meteor-chrome-headless-spiderable by running : | ||
meteor add artlimes:meteor-chrome-headless-spiderable | ||
|
||
3.Cache all existing visible products by running in Browser's console: | ||
# Installation | ||
1. Copy/Clone folder to `plugins/custom`. | ||
2. Install [artlimes:meteor-chrome-headless-spiderable](https://github.com/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: | ||
```js | ||
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). Your visible products will be cached after publish anyway. | ||
|
||
After that cached Products will be updated at each product publishing. | ||
|