Skip to content

Commit

Permalink
adding method to the caching key to make it more unique
Browse files Browse the repository at this point in the history
  • Loading branch information
netcode committed Mar 18, 2024
1 parent 40d1fef commit b008ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/randomizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const render = (httpRequest, contents, vars, enableCache) => {
let renderedContents;

//check cache first
let cacheKey = Cache.key(httpRequest.path);
let cacheKey = Cache.key(httpRequest.path + httpRequest.method);
let res = Cache.get(cacheKey);
if (res) {
return replaceUncachableVariables(res);
Expand Down

0 comments on commit b008ce1

Please sign in to comment.