I know this is an old thread but wanted to pass along some info in case it can help someone. In my case the cached files are in /dev/shm and were owned by freeswitch instead of www-data. Before I realized the ownership was wrong I removed the sticky bit on /dev/shm and it fixed the problem...