Add cache handling for text and image

need to create dir
/party-cache-zyz/
/party-cache-zyz/text/
/party-cache-zyz/image/