* @param $key if not empty, protect the file with this key
* @param $time the time of validity of the file
* @param $cfg the current configuration
* @param $key if not empty, protect the file with this key
* @param $time the time of validity of the file
* @param $cfg the current configuration