Fixing session expiry on cache clear