Total cache old config fix

With this fix new config will be compared with old one.