add tag to cache functions
UTF-8 encode quotes and ampersands
add flush method