Fix #481 Allow enabling cache in development mode