@@ -26,7 +26,6 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @param Container $container |
28 | 28 | * @param $victoireTwigResponsive |
29 | - * @param Client $redis |
|
30 | 29 | * @param WidgetCache $widgetCache |
31 | 30 | */ |
32 | 31 | public function __construct(Container $container, $victoireTwigResponsive, WidgetCache $widgetCache) |
@@ -196,7 +195,7 @@ discard block |
||
196 | 195 | * |
197 | 196 | * @param Widget $widget |
198 | 197 | * |
199 | - * @return mixed |
|
198 | + * @return string |
|
200 | 199 | */ |
201 | 200 | public function renderStyle(Widget $widget) |
202 | 201 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $hash = $this->getHash($widget); |
42 | 42 | if ($hash) { |
43 | 43 | $this->redis->set($hash, $content); |
44 | - $this->redis->expire($hash, 7 * 24 * 60 * 1000); // cache for a week |
|
44 | + $this->redis->expire($hash, 7*24*60*1000); // cache for a week |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 |