@avalw/search-worker 2.3.4 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @avalw/search-worker v2.3.
|
|
2
|
+
* @avalw/search-worker v2.3.5
|
|
3
3
|
* Distributed Cache Worker for AVALW Search Network
|
|
4
4
|
*
|
|
5
5
|
* Workers connect to the coordinator via WebSocket and serve as
|
|
@@ -606,7 +606,7 @@ class SearchWorker {
|
|
|
606
606
|
// Invalidate a cache key
|
|
607
607
|
if (message.key) {
|
|
608
608
|
this.cache._evict(message.key, 'invalidate');
|
|
609
|
-
|
|
609
|
+
// Privacy: Don't log cache keys
|
|
610
610
|
}
|
|
611
611
|
break;
|
|
612
612
|
|
|
@@ -647,7 +647,7 @@ class SearchWorker {
|
|
|
647
647
|
value
|
|
648
648
|
});
|
|
649
649
|
|
|
650
|
-
|
|
650
|
+
// Privacy: Don't log cache keys (they contain search queries)
|
|
651
651
|
} else {
|
|
652
652
|
this.stats.cacheMisses++;
|
|
653
653
|
|
|
@@ -676,8 +676,7 @@ class SearchWorker {
|
|
|
676
676
|
this.stats.cacheStored++;
|
|
677
677
|
this.onCacheStore(key);
|
|
678
678
|
|
|
679
|
-
|
|
680
|
-
this.onLog(`Cached: ${key.substring(0, 30)}... (${cacheStats.entries} entries, ${cacheStats.sizeFormatted})`);
|
|
679
|
+
// Privacy: Don't log cache keys (they contain search queries)
|
|
681
680
|
}
|
|
682
681
|
|
|
683
682
|
// Send cache registry to coordinator
|