mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Added Redis for Caching and Started Database Query Caching Migration to Redis
This commit is contained in:
parent
f99360d9b9
commit
0f899cb34f
12 changed files with 260 additions and 632 deletions
|
@ -3,6 +3,14 @@ import * as Sentry from '@sentry/nextjs';
|
|||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||||
await import('./sentry.server.config');
|
||||
|
||||
const { registerInitialCache } = await import(
|
||||
'@neshca/cache-handler/instrumentation'
|
||||
);
|
||||
|
||||
const CacheHandler = (await import('./cache-handler')).default;
|
||||
|
||||
await registerInitialCache(CacheHandler);
|
||||
}
|
||||
|
||||
if (process.env.NEXT_RUNTIME === 'edge') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue