Commit 1b600e0b authored by Emiliano Balbuena's avatar Emiliano Balbuena
Browse files

(fix): Ensure cached content is served correctly

parent 5460503c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -116,7 +116,7 @@ class channel implements Interfaces\Api


        $custom_type = isset($_GET['custom_type']) && $_GET['custom_type'] ? [$_GET['custom_type']] : null;
        $custom_type = isset($_GET['custom_type']) && $_GET['custom_type'] ? [$_GET['custom_type']] : null;


        $cache = (bool) $_GET['cache'] ?? false;
        $cache = (bool) $_GET['cache'] ?? true;


        /** @var Core\Data\cache\abstractCacher $cacher */
        /** @var Core\Data\cache\abstractCacher $cacher */
        $cacher = Di::_()->get('Cache');
        $cacher = Di::_()->get('Cache');
@@ -205,7 +205,7 @@ class channel implements Interfaces\Api


    private function getCacheKey(array $opts): string
    private function getCacheKey(array $opts): string
    {
    {
        return "feeds-channel:" . implode(':', opts);
        return "feeds-channel:" . implode(':', $opts);
    }
    }


    /**
    /**