contributions/binaries/controller/base/cachemanager/binaries.cachemanager.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Caches content client side, but not server side 00004 */ 00005 class BinariesCacheManager extends NoCacheCacheManager { 00006 /** 00007 * Constructor 00008 * 00009 * @param int $duration Cache duration , defaults to value set in ConfigBinaries::CLIENT_CACHE_DURATION 00010 * @param ICacheHeaderManager $header_manager Defaults to class et in ConfigBinaries::CACHEHEADER_CLASS 00011 */ 00012 public function __construct($duration = false, $header_manager = false) { 00013 if (empty($duration)) { 00014 $duration = Config::get_value(ConfigBinaries::CLIENT_CACHE_DURATION); 00015 } 00016 if (empty($header_manager)) { 00017 $header_manager = CacheHeaderManagerFactory::create(Config::get_value(ConfigBinaries::CACHEHEADER_CLASS)); 00018 } 00019 parent::__construct($duration, $header_manager); 00020 } 00021 }