<?php

namespace OfficeBrain\Bundle\CacheBundle\Setting;

use OfficeBrain\Bundle\CacheBundle\Setting\ServerSideCacheSetting;

/**
 * Class to define Server Side Cache Setting
 *
 * @author OfficeBrain 4074 <info@officebrain.com>
 *
 */

class WebClientResponseCacheSetting extends ServerSideCacheSetting
{
	/**
	 * Boolean $IS_RESPONSE_CACHE_ENABLED
	 * Cache Web Client response or not
	 */
	static public $IS_CACHE_ENABLED = false;
	
	/**
	 * Array $CACHE_ENABLED_FOR_HOST_ARRAY
	 * List of host name for which web client response cache is enabled
	 */
	static public $CACHE_ENABLED_FOR_HOST_ARRAY = array('localhost', '127.0.0.1', 'qa.officebeacon.com', 'admin.whitelabelstaffing.com', 'www.encoreeventstaffing.com');
	
	/**
	 * Array $ENABLED_FOR_ENVIRONMENT_ARRAY
	 * List of environment name for which cache is enabled
	 */
	static public $ENABLED_FOR_ENVIRONMENT_ARRAY = array('prod');
	
	/**
	 * Intiger $CACHE_TTL
	 * Cache TTL (Lifetime validity in seconds)
	 */
	static public $CACHE_TTL = 86400; // one day
}