src/Control/HTTP.php
public static function set_cache_age($age)
    {
        Deprecation::notice('5.0', 'Use HTTPCacheControlMiddleware::singleton()->setMaxAge($age) instead');
        self::$cache_age = $age;
        HTTPCacheControlMiddleware::singleton()->setMaxAge($age);
    }
public static function set_cache_age($age)
    {
        Deprecation::notice('5.0', 'Use HTTPCacheControlMiddleware::singleton()->setMaxAge($age) instead');
        self::$cache_age = $age;
        HTTPCacheControlMiddleware::singleton()->setMaxAge($age);
    }
public static function set_cache_age ( $ age ) { Deprecation :: notice ( '5.0' , 'Use HTTPCacheControlMiddleware::singleton()->setMaxAge($age) instead' ) ; self :: $ cache_age = $ age ; HTTPCacheControlMiddleware :: singleton ( ) -> setMaxAge ( $ age ) ; }
Set the maximum age of this page in web caches, in seconds.

@deprecated 4.2.0:5.0.0 Use HTTPCacheControlMiddleware::singleton()->setMaxAge($age) instead
@param int $age
Set the maximum age of this page in web caches in seconds .