Remove cached values of variables

When the value of a variable is changed, it still shows the old cached value along with the new value. I want the cached values to not appear. As a temporary fix, I’m filtering unwanted values from the regex options in variables but it’s not possible to implement this for all use cases.