FileStorage: Cache file has permissions 666, so everyone can delete it

Situation on Debian:
When someone access web page, cache files for database are created, but with permissions 644, owner is Apache.
Then when I want to call action from console, it is permitted, because PHP is not an owner.