Clear folder permissions cache before updating permissions

Add clearing of folder permissions  in an attempt to fix a firefox issue
with viewing receipts.