Invalidate cache on user language changes (#1897)

Replaced old code to invalidate the cache with new code.
Merge pull request #1900 from pculture/gh-1897

Invalidate cache on user language changes (#1897)