getCachedVersion example

/** * Cache key for update response */
    public const CACHE_KEY = 'swag_update_response';

    /** * @return void */
    public function changelogAction()
    {
        try {
            $data = $this->getCachedVersion();
        } catch (Exception $e) {
            $logger = $this->get('corelogger');
            $logger->error($e);

            $this->View()->assign([
                'success' => false,
                'data' => [],
                'message' => $e->getMessage(),
            ]);

            return;
        }
Home | Imprint | This part of the site doesn't use cookies.