mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 18:32:10 +01:00
feat: implement cache layer, CSP improvements, and database performance optimizations
- Add Redis cache implementation with LRU eviction - Enhance Content Security Policy with nonce generation - Optimize database queries with connection pooling - Add cache invalidation API endpoints - Improve security monitoring performance
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
import cron, { type ScheduledTask } from "node-cron";
|
||||
import { BatchOperation, batchLogger } from "./batchLogger";
|
||||
import { BatchLogLevel, BatchOperation, batchLogger } from "./batchLogger";
|
||||
import {
|
||||
checkBatchStatuses,
|
||||
createBatchRequest,
|
||||
@ -165,7 +165,7 @@ async function createBatchesOptimized(): Promise<void> {
|
||||
|
||||
if (pendingRequestsByCompany.size === 0) {
|
||||
await batchLogger.log(
|
||||
batchLogger.BatchLogLevel.DEBUG,
|
||||
BatchLogLevel.DEBUG,
|
||||
"No pending requests found across all companies",
|
||||
{ operation: BatchOperation.BATCH_CREATION }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user