'file_cache/', 'lifeTime' => 86400 ); // define regex patterns that shoud NOT be accepted $file_cache_exclude = array(); // if set, cached file must match at least one of these regex patterns $file_cache_include = array( //'#.+[.](png|jpe?g|gif)#i' // only media files ); /**************************************************************** ** REST API OPTIONS ** ****************************************************************/ // whitelisting is done per IP address ($_SERVER['REMOTE_ADDR']) with a default for the generic stuff that applies to all IP addresses // - if a request comes in and the IP does not occur in the array, the whitelisted in 'default' are used // - if a request comes in and the Ip does occur in the array, the whitelisted in the IP are checked first. If nothing is // found ,the 'default' ones are checked next. $rest_allowed_actions = array( 'default' => array( 'Contact' => array( 'getsingle' => array( 'email' => 'string', ), ), ), '123.45.678.1' => array( 'Contact' => array( 'getsingle' => array( 'first_name' => 'string', 'last_name' => 'string', ), ), ), );