Fix to purge cache also when AJAX layout has been changed