Skip to content

Commit

Permalink
readme gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
lcampanis committed Feb 14, 2018
1 parent 503810c commit c275ff1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
.vscode
.idea
.c9
22 changes: 14 additions & 8 deletions README.md
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.

0 comments on commit c275ff1

Please sign in to comment.