From 1e06fb0404c35be7919ea4a601c6f3b5971e30f5 Mon Sep 17 00:00:00 2001 From: argirok Date: Fri, 19 Jul 2024 11:13:54 +0300 Subject: [PATCH] [develop | DONE | FIX ] Cache: fix clear specific url --- services/cache/mecache/cache.js | 2 +- services/cache/mecache/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/cache/mecache/cache.js b/services/cache/mecache/cache.js index 79a4b9c1..995fc2d6 100644 --- a/services/cache/mecache/cache.js +++ b/services/cache/mecache/cache.js @@ -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); diff --git a/services/cache/mecache/package.json b/services/cache/mecache/package.json index 4bca0555..27345f42 100644 --- a/services/cache/mecache/package.json +++ b/services/cache/mecache/package.json @@ -1,6 +1,6 @@ { "name": "memcache-cache", - "version": "1.0.0", + "version": "2.0.0", "description": "Caching in memory", "main": "cache.js", "scripts": {