contributions/binaries/start.inc.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Binaries config options 00004 * 00005 * @since 0.6.0 00006 * 00007 * Every option can be set through the according APP_ constant, e.g. 00008 * to define default client cache duratation use APP_BINARIES_CLIENT_CACHE_DURATION 00009 * 00010 * @author Gerd Riesselmann 00011 * @ingroup Binaries 00012 */ 00013 class ConfigBinaries { 00014 /** 00015 * Time in seconds binaries should be cached at client side 00016 * 00017 * @since 0.5.1 00018 */ 00019 const CLIENT_CACHE_DURATION = 'BINARIES_CLIENT_CACHE_DURATION'; 00020 00021 /** 00022 * CacheHeaderManager policy for binaries 00023 * 00024 * Class name without CacheHeaderManager, e.g. PrivateLazy for PrivateLazyCacheHeaderManager 00025 */ 00026 const CACHEHEADER_CLASS = 'BINARIES_CACHEHEADER_CLASS'; 00027 } 00028 00029 00030 Config::set_value_from_constant(ConfigBinaries::CLIENT_CACHE_DURATION, 'APP_BINARIES_CLIENT_CACHE_DURATION', 30 * GyroDate::ONE_DAY); 00031 Config::set_value_from_constant(ConfigBinaries::CACHEHEADER_CLASS, 'APP_BINARIES_CACHEHEADER_CLASS', 'PrivateLazy');