Issue #2099105 by Berdir, andypost, amateescu, larowlan: Clean-up render cache when permission changes.