Guys , here is the most easy solution ever. I currently got the same problem too , and i just renamed the filename of the gallery and everything was fine , cache started looking another filename with right perms :-) easy tricks!
More