Empty out the cache in use as best it can
It may only remove the files of a certain type (if the $type parameter is given)
Type can be user, data or left blank
- user clears out user data
- data clears out system / opcode data
- If no type is specified will perform a complete cache clearing
For cache engines that do not distinguish on types, a full cache flush will be done