public function afterImport()
    {
        $obj = Craft::$app->sections;
        $refObject = new \ReflectionObject($obj);
        if ($refObject->hasProperty('_editableSectionIds')) {
            $refProperty1 = $refObject->getProperty('_editableSectionIds');
            $refProperty1->setAccessible(true);
            $refProperty1->setValue($obj, $obj->getAllSectionIds());
        }
    }
public function afterImport()
    {
        $obj = Craft::$app->sections;
        $refObject = new \ReflectionObject($obj);
        if ($refObject->hasProperty('_editableSectionIds')) {
            $refProperty1 = $refObject->getProperty('_editableSectionIds');
            $refProperty1->setAccessible(true);
            $refProperty1->setValue($obj, $obj->getAllSectionIds());
        }
    }
public function afterImport ( ) { $ obj = Craft :: $ app -> sections ; $ refObject = new \ ReflectionObject ( $ obj ) ; if ( $ refObject -> hasProperty ( '_editableSectionIds' ) ) { $ refProperty1 = $ refObject -> getProperty ( '_editableSectionIds' ) ; $ refProperty1 -> setAccessible ( true ) ; $ refProperty1 -> setValue ( $ obj , $ obj -> getAllSectionIds ( ) ) ; } }
Reset craft editable sections cache using reflection.
Reset craft editable sections cache using reflection .