Only invalidate when value is actually changed
Merge pull request #229 from ResultsMayVary/master

Only invalidate when value is actually changed