Optimize flush all method of apc cache