diff --git a/App/FeatureSet/Home/Utils/BlogPost.ts b/App/FeatureSet/Home/Utils/BlogPost.ts index 17690f8892..ac702a50ae 100644 --- a/App/FeatureSet/Home/Utils/BlogPost.ts +++ b/App/FeatureSet/Home/Utils/BlogPost.ts @@ -111,9 +111,9 @@ export default class BlogPostUtil { public static async getBlogPost(fileName: string): Promise { let blogPost: BlogPost | null = this.getBlogPostFromCache(fileName); - // if (blogPost) { - // return Promise.resolve(blogPost); - // } + if (blogPost) { + return Promise.resolve(blogPost); + } blogPost = await this.getBlogPostFromGitHub(fileName); diff --git a/Copilot/Init.ts b/Copilot/Init.ts index c52f5c6051..0910176425 100644 --- a/Copilot/Init.ts +++ b/Copilot/Init.ts @@ -26,6 +26,7 @@ import ProcessUtil from "./Utils/Process"; let currentFixCount: number = 1; const init: PromiseVoidFunction = async (): Promise => { + // check if copilot is disabled. if (GetIsCopilotDisabled()) { logger.info("Copilot is disabled. Exiting."); diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index bc1b8bf914..c1537d2685 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -314,10 +314,7 @@ services: # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - ./Common:/usr/src/Common - - /usr/src/Common/node_modules/ - - ports: - '9985:9229' # Debugging port. extends: