View more context

 

mukmuk

what is the preferred way for importing dataobjects by modeladmin's CSV importer?

upload all assets beforehand through /admin/assets/, then write down the File.ID as MyDataFileId in the csv?

dorsetdigital

I'd have thought it was better to make a custom importer

wmk

you can add that custom importer to the modeladmin, yes. It could try to find the file by path in DB and import it from a "files-to-import" folder if not found.

dorsetdigital

A lot depends where the files are really. If they're already online somewhere, you can automate the entire process

dorsetdigital

Otherwise you could upload them and find them as @wmk suggests

mukmuk

They're physically on the same server, so i could get them by the local path. Basically i could write a custom importer while using File::setFromLocalFile ? That would be the most stress-free way indeed

brian.cairns

We’re having critical performance issues with pages that contain multiple embedded videos. After digging in with some profiling, it appears this is because the shortcode parser is using CURL (via the Embed module) to fetch remote data about every video when the page is displayed.

We have a blog listing page that is taking 40-60 seconds to load, because it tries to display a text excerpt for each post, which triggers this behaviour. And the individual blog post pages take 10+ seconds to load.

Does anybody know if there is a way to control or disable this behaviour?

MichalKleiner

is there any chance you can change how the videos are used, e.g. via a video block with custom behaviour? do you need to use shortcodes?