Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #54 from jsanahuja/feature/cache_time
Browse files Browse the repository at this point in the history
Implement cache_time feature. Closes #49.
  • Loading branch information
jsanahuja authored Feb 22, 2021
2 parents 4cba83c + f55d057 commit d6fdb02
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 17 deletions.
2 changes: 1 addition & 1 deletion dist/InstagramFeed.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ <h3>Options</h3>
<td><code>https://www.instagram.com/</code></td>
<td>URL where to fetch the data. Useful if instagram changes CORS policy</td>
</tr>
<tr>
<td class="d-flex flex-wrap">
<code class="text-bold flex-grow-1">cache_time</code>
</td>
<td><em>number [Int]</em></td>
<td><code>120</code></td>
<td>Instagram response cache expiry time in minutes</td>
</tr>
<tr>
<td class="d-flex flex-wrap">
<code class="text-bold flex-grow-1">on_error</code>
Expand Down Expand Up @@ -701,4 +709,4 @@ <h3 class="text-white">Still not enough?</h3>
</script>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@jsanahuja/instagramfeed",
"description": "Instagram Feed without access token. Not using the Instagram API",
"homepage": "https://github.com/jsanahuja/InstagramFeed",
"version": "1.5.4",
"version": "2.0.0",
"keywords": [
"instagram",
"feed",
Expand Down
Loading

0 comments on commit d6fdb02

Please sign in to comment.