Skip to content

Commit

Permalink
avoid sending unnecessary messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Jul 2, 2024
1 parent 8cba2c5 commit 18dbd28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers/functions.cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ export function clearCacheByTableName(tableName, relayMessage = true) {
clearWorkOrderTypesCache();
break;
}
default: {
return;
}
}
try {
if (relayMessage && cluster.isWorker) {
Expand Down
4 changes: 4 additions & 0 deletions helpers/functions.cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ export function clearCacheByTableName(
clearWorkOrderTypesCache()
break
}

default: {
return
}
}

try {
Expand Down

0 comments on commit 18dbd28

Please sign in to comment.