Added handling in beforeRender hook for caching of status as well as body