public function getDefaultRelations($postType)
    {
        $relations = [];

        if(count($this->autoCacheRelations)) {
            return $this->autoCacheRelations;
        }


        // Tags
        if($postType->hasTags) {
            $relations[] = 'tags';
        }

        // Categories
        if($postType->hasCategories) {
            $relations[] = 'categories';
        }

        // FeaturedImage
        $relations[] = 'featuredimage';

        return $relations;
    }
public function getDefaultRelations($postType)
    {
        $relations = [];

        if(count($this->autoCacheRelations)) {
            return $this->autoCacheRelations;
        }


        // Tags
        if($postType->hasTags) {
            $relations[] = 'tags';
        }

        // Categories
        if($postType->hasCategories) {
            $relations[] = 'categories';
        }

        // FeaturedImage
        $relations[] = 'featuredimage';

        return $relations;
    }
public function getDefaultRelations ( $ postType ) { $ relations = [ ] ; if ( count ( $ this -> autoCacheRelations ) ) { return $ this -> autoCacheRelations ; } // Tags if ( $ postType -> hasTags ) { $ relations [ ] = 'tags' ; } // Categories if ( $ postType -> hasCategories ) { $ relations [ ] = 'categories' ; } // FeaturedImage $ relations [ ] = 'featuredimage' ; return $ relations ; }
Get cache relations.

@param  $postType
@return array
Get cache relations .