<?php

namespace OfficeBrain\Bundle\CacheBundle\Setting;

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

class ApiResponseCacheSetting
{
	/** 
	 * Boolean $IS_API_CACHE_ENABLED
	 * Cache API 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 $IS_API_CACHE_ENABLED
	 * 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
}