From e3bbf45151cc147963f24f322075f9d58d1752d9 Mon Sep 17 00:00:00 2001
From: rpletz <rpletz@bcgsc.ca>
Date: Wed, 22 Nov 2023 14:51:57 -0800
Subject: [PATCH 1/2] Remove cache

---
 app/routes/report/smallMutations.js | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/app/routes/report/smallMutations.js b/app/routes/report/smallMutations.js
index 1a4c3121b..438f4ecd9 100644
--- a/app/routes/report/smallMutations.js
+++ b/app/routes/report/smallMutations.js
@@ -71,18 +71,6 @@ router.route('/:mutation([A-z0-9-]{36})')
 router.route('/')
   .get(async (req, res) => {
     // Get all small mutations for this report
-    const key = `/reports/${req.report.ident}/small-mutations`;
-
-    try {
-      const cacheResults = await cache.get(key);
-
-      if (cacheResults) {
-        res.type('json');
-        return res.send(cacheResults);
-      }
-    } catch (error) {
-      logger.error(`Error while checking cache for small mutations ${error}`);
-    }
 
     try {
       const results = await db.models.smallMutations.scope('extended').findAll({
@@ -98,10 +86,6 @@ router.route('/')
         ],
       });
 
-      if (key) {
-        cache.set(key, JSON.stringify(results), 'EX', 14400);
-      }
-
       return res.json(results);
     } catch (error) {
       logger.error(`Unable to retrieve small mutations ${error}`);

From 0306bdd0e1ec7f4c1b030aa1824fc37b68659982 Mon Sep 17 00:00:00 2001
From: rpletz <rpletz@bcgsc.ca>
Date: Wed, 22 Nov 2023 14:53:06 -0800
Subject: [PATCH 2/2] Lint

---
 app/routes/report/smallMutations.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/app/routes/report/smallMutations.js b/app/routes/report/smallMutations.js
index 438f4ecd9..30b745ff2 100644
--- a/app/routes/report/smallMutations.js
+++ b/app/routes/report/smallMutations.js
@@ -5,7 +5,6 @@ const router = express.Router({mergeParams: true});
 
 const db = require('../../models');
 const logger = require('../../log');
-const cache = require('../../cache');
 
 // Middleware for small mutations
 router.param('mutation', async (req, res, next, mutIdent) => {