Fix for cache expiration, using before each request call in views