fix rights and APC cache issue on restart
Merge pull request #1 from Erwyn/master

fix rights and APC cache issue on restart