Not caching cache class if using db