SL::DB::{Chart,Part}: Verwendung von $::request->cache()
[kivitendo-erp.git] / SL / DB / Chart.pm
index db8a3b9..7c50b43 100644 (file)
@@ -17,7 +17,7 @@ sub get_active_taxkey {
   my ($self, $date) = @_;
   $date ||= DateTime->today_local;
 
-  my $cache = $::request->{cache}{chart}{$date};
+  my $cache = $::request->cache("get_active_taxkey")->{$date} //= {};
   if ($cache->{$self->id}) {
     return $cache->{$self->id};
   }