Skip to content

Commit

Permalink
Fixed CACHE.read().
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Aug 20, 2024
1 parent a36f7e4 commit 8737ed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports.set = function(key, value, expire = '5 minutes') {
exports.read = exports.get = function(key, def) {
var item = F.temporary.cache[key];
global.NOW = new Date();
if (item && item.expire < global.NOW)
if (item && item.expire > global.NOW)
return item.value;
else
return def;
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- added `action.status(fn)` for handling and `$.status(value)` for calling in actions
- added HTTP auto-redirect for `WebSocketClient`
- added support for WebSocket redirections in the remote edit
- fixed `CACHE.read()`

========================
0.0.5
Expand Down

0 comments on commit 8737ed2

Please sign in to comment.