[develop | DONE | FIX ] Cache: fix clear specific url
This commit is contained in:
parent
706fe7cd07
commit
1e06fb0404
|
@ -107,7 +107,7 @@ app.get('/clear', (req, res) => {
|
|||
const url = req.query.url;
|
||||
let message = "";
|
||||
if (url) {
|
||||
let key = '__express__' + req.query.url;
|
||||
let key = req.query.url;
|
||||
lruCache.delete(key);
|
||||
message = "Delete entry with key " + url;
|
||||
entries.set(lruCache.size);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "memcache-cache",
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"description": "Caching in memory",
|
||||
"main": "cache.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue