Fixed APC cache clear. Fixes #1115.