setSettingInternal clears restriction cache when storing a whitelist
Merge pull request #1441 from jpeg729/bugfix2

setSettingInternal clears restriction cache when storing a whitelist

I don't know anything better.
Closes #1440