fix rights and APC cache issue on restart