From 5978b1c421be1512e4820a20a8ac192f0689996b Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 2 Mar 2016 12:02:01 +0100 Subject: [PATCH] Removed cache from typeIcon --- app/Support/Twig/Journal.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/Support/Twig/Journal.php b/app/Support/Twig/Journal.php index 52aebb02a5..e49ab29d18 100644 --- a/app/Support/Twig/Journal.php +++ b/app/Support/Twig/Journal.php @@ -74,13 +74,6 @@ class Journal extends Twig_Extension return new Twig_SimpleFilter( 'typeIcon', function (TransactionJournal $journal): string { - $cache = new CacheProperties(); - $cache->addProperty($journal->id); - $cache->addProperty('typeIcon'); - if ($cache->has()) { - return $cache->get(); // @codeCoverageIgnore - } - switch (true) { case $journal->isWithdrawal(): $txt = ''; @@ -98,11 +91,8 @@ class Journal extends Twig_Extension $txt = ''; break; } - $cache->store($txt); return $txt; - - }, ['is_safe' => ['html']] ); }