Changed permissions of cache directory to 777