Developer Forum »
Generating image versions
58 posts

Hi, it seems that the cache-generator is working slower when there are many files in the system. Is this something that just has to be, or can it be fixed in any way? Generating 40 120x120 versions when there are <400 ContentFiles, it goes like a charm, but when there are > 3000, it takes up to 30secs, probably depending on the server performance.

58 posts

Is it possible to perhaps set up a scheduled task to do this regularly. Was thinking along the lines of indexing content, that every 2secs an uncached image could be generated?

120 posts

I think your best option is to write a scheduled task that cache the needed image sizes by calling the GetFilePath(Adjustments) function on the file property object of the relevant content classes.

58 posts

Yup, and it worked like a charm :)

1