gyro/modules/mime/controller/base/cachemanager/mime.cachemanager.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Caches content client side, but not server side 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Mime 00007 */ 00008 class MimeCacheManager extends ConstantCacheManager { 00009 /** 00010 * Constructor 00011 * 00012 * @param int $duration Cache duration , defaults to one month 00013 * @param ICacheHeaderManager $header_manager Defaults to PrivateLazyCacheHeaderManager 00014 */ 00015 public function __construct($duration = false, $header_manager = false) { 00016 if (empty($duration)) { 00017 $duration = GyroDate::ONE_MONTH; 00018 } 00019 if (empty($header_manager)) { 00020 $header_manager = new PrivateLazyCacheHeaderManager(); 00021 } 00022 parent::__construct('', $duration, $header_manager); 00023 } 00024 }