sitewide_alert cache max age value is hard coded

Created on 3 July 2023, over 1 year ago
Updated 16 August 2023, over 1 year ago

The cache lifetime for this callback is 15 seconds as hard code. We should use dynamic cache max age value whether it is feasible to increase the cache lifetime to reduce the volume of requests.

// Prevent the browser and downstream caches from caching for more than 15 seconds.
    $response->setMaxAge(15);
    $response->setSharedMaxAge(15);

This value has set in the src/Controller/SitewideAlertsController.php

โœจ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia rameshh24

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024