Commit e12f8a7d authored by Matthias Larisch's avatar Matthias Larisch

Fix influxdb parameter for Caching

parent 61bdc733
Pipeline #37937155 passed with stages
in 27 minutes and 7 seconds
......@@ -20,8 +20,11 @@ $session->initIfCookieExists();
/* @var $mem Mem */
$mem = $container->get(Mem::class);
/* @var $influxdb \Foodsharing\Modules\Core\InfluxMetrics */
$influxdb = $container->get(\Foodsharing\Modules\Core\InfluxMetrics::class);
if (isset($g_page_cache)) {
$cache = new Caching($g_page_cache, $session, $mem);
$cache = new Caching($g_page_cache, $session, $mem, $influxdb);
$cache->lookup();
}
......
......@@ -20,8 +20,11 @@ $session->initIfCookieExists();
/* @var $mem Mem */
$mem = $container->get(Mem::class);
/* @var $influxdb \Foodsharing\Modules\Core\InfluxMetrics */
$influxdb = $container->get(\Foodsharing\Modules\Core\InfluxMetrics::class);
if (isset($g_page_cache)) {
$cache = new Caching($g_page_cache, $session, $mem);
$cache = new Caching($g_page_cache, $session, $mem, $influxdb);
$cache->lookup();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment