Added createCache function to Swift Class and created .htaccess to protect .cache files.