Merge pull request #3690 from mafooo/redis_cache_save_fix

Fixed redis cache save logic