Added prefix to APC cache store. Cleaned up methods. Fixes #1573.