/** * Wrapper for updating sitetree functionality, * it's called on almost every action of an edit page form */ protected function updateSiteTree($record, $socketId = null) { // if it's a sitetree page then reset the sitetree cache // and re emit the sitetree refresh SiteTreeOrigamiApi::reset_cache(); SiteTreeOrigamiApi::emit_structure($socketId, $record); }