added caching and moved the cache directory from html to /var