address deprecated rails cache issue