From f3344c9bdc0b2828f01e89dcc413268a918e1185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20B=C3=B6lter?= Date: Wed, 15 Mar 2023 19:08:28 +0100 Subject: [PATCH] Update MapProvider.php --- src/MapProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MapProvider.php b/src/MapProvider.php index 2158a59..5876b47 100644 --- a/src/MapProvider.php +++ b/src/MapProvider.php @@ -287,7 +287,7 @@ public function getFeatureCollection($layerId, Filter $filter = null) $collection = $this->mapper->handleGeoJson($model, $request); $cachedItem - ->expiresAfter($model->cacheLifeTime) + ->expiresAfter((int) $model->cacheLifeTime) ->set($collection); $this->cache->save($cachedItem);