Added cache flush on block perm, discovered by @chunhuili