public function updateChildFilesystem()
    {
        // Don't synchronise on live (rely on publishing instead)
        if (class_exists(Versioned::class) && Versioned::get_stage() === Versioned::LIVE) {
            return;
        }

        $this->flushCache();
        // Writing this record should trigger a write (and potential updateFilesystem) on each child
        foreach ($this->AllChildren() as $child) {
            $child->write();
        }
    }
public function updateChildFilesystem()
    {
        // Don't synchronise on live (rely on publishing instead)
        if (class_exists(Versioned::class) && Versioned::get_stage() === Versioned::LIVE) {
            return;
        }

        $this->flushCache();
        // Writing this record should trigger a write (and potential updateFilesystem) on each child
        foreach ($this->AllChildren() as $child) {
            $child->write();
        }
    }
public function updateChildFilesystem ( ) { // Don't synchronise on live (rely on publishing instead) if ( class_exists ( Versioned :: class ) && Versioned :: get_stage ( ) === Versioned :: LIVE ) { return ; } $ this -> flushCache ( ) ; // Writing this record should trigger a write (and potential updateFilesystem) on each child foreach ( $ this -> AllChildren ( ) as $ child ) { $ child -> write ( ) ; } }
Update filesystem of all children
Update filesystem of all children