@@ -12,7 +12,6 @@ import {
1212import { DocsRegistrationInfo } from "../../controllers/docs/v2/getDocsWriteV2Service" ;
1313import { FdrDao } from "../../db" ;
1414import { Semaphore } from "../revalidator/Semaphore" ;
15- import LocalDocsDefinitionStore from "./LocalDocsDefinitionStore" ;
1615import RedisDocsDefinitionStore from "./RedisDocsDefinitionStore" ;
1716
1817const DOCS_DOMAIN_REGX = / ^ ( [ ^ . \s ] + ) / ;
@@ -66,18 +65,15 @@ export interface CachedDocsResponse {
6665}
6766
6867export class DocsDefinitionCacheImpl implements DocsDefinitionCache {
69- private localDocsCache : LocalDocsDefinitionStore ;
7068 private redisDocsCache : RedisDocsDefinitionStore | undefined ;
7169 private DOCS_WRITE_MONITOR : Record < string , Semaphore > = { } ;
7270 private initialized : boolean = false ;
7371
7472 constructor (
7573 private readonly app : FdrApplication ,
7674 private readonly dao : FdrDao ,
77- localDocsCache : LocalDocsDefinitionStore ,
7875 redisDocsCache : RedisDocsDefinitionStore | undefined
7976 ) {
80- this . localDocsCache = localDocsCache ;
8177 this . redisDocsCache = redisDocsCache ;
8278 }
8379
@@ -106,7 +102,6 @@ export class DocsDefinitionCacheImpl implements DocsDefinitionCache {
106102 if ( this . redisDocsCache ) {
107103 await this . redisDocsCache . delete ( { url } ) ;
108104 }
109- this . localDocsCache . delete ( { url } ) ;
110105 }
111106
112107 public async getDocsForUrl ( {
@@ -228,7 +223,6 @@ export class DocsDefinitionCacheImpl implements DocsDefinitionCache {
228223 if ( this . redisDocsCache ) {
229224 await this . redisDocsCache . set ( { url, value } ) ;
230225 }
231- this . localDocsCache . set ( { url, value } ) ;
232226 }
233227
234228 private async getDocsForUrlFromCache ( {
@@ -240,7 +234,7 @@ export class DocsDefinitionCacheImpl implements DocsDefinitionCache {
240234 if ( this . redisDocsCache ) {
241235 record = await this . redisDocsCache . get ( { url } ) ;
242236 } else {
243- record = this . localDocsCache . get ( { url } ) ?? null ;
237+ record = null ;
244238 }
245239 if ( record != null && record . version !== SEMANTIC_VERSION ) {
246240 return null ;
0 commit comments