Пример #1
0
 /**
  * Set/get cachable state for the response.
  *
  * If $allow is set, sets the cachable state of the response.  Always returns current state.
  *
  * @param   boolean  $allow  True to allow browser caching.
  *
  * @return  boolean  True if browser caching should be allowed
  *
  * @since   11.1
  */
 public static function allowCache($allow = null)
 {
     if (!is_null($allow)) {
         self::$cachable = (bool) $allow;
     }
     return self::$cachable;
 }