Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit 30b6725

Browse files
committed
Make loader cachable
1 parent 8af490e commit 30b6725

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
let cheerio = require('cheerio');
22

33
module.exports = function(content) {
4+
// flag as cachable
5+
this.cacheable();
6+
47
// get the query (settings) as object
58
var query = JSON.parse(this.query.substr(1));
69

0 commit comments

Comments
 (0)