Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Thumbnails not updating [solved]


Reply

7 Posts   1125 Views

Avatar
Sparrowhawk

21 September 2010 at 9:16pm (Last edited: 27 September 2010 9:14pm), Community Member, 33 Posts

Hi,

Is there a way to force SS to regenerate the thumbnails that are displayed on the right hand side when a user selects to embed an image in the content?

A client is saying that he uploaded some new versions of images (some with the same name, some with new names) and that *some* of the thumbnails had not updated to the new versions of the image.

Any idea why this might be, along with how to regenerate them?

Many thanks!

Avatar
x75

22 September 2010 at 4:26am Community Member, 42 Posts

Hi,

try /dev/tasks/FlushGeneratedImagesTask

That will remove all generated images.

Johannes

Avatar
Sparrowhawk

22 September 2010 at 10:30pm Community Member, 33 Posts

Hi Johannes,

Thanks for the reply, I'll give it a go and report back.

Jean-Yves

Avatar
Sparrowhawk

22 September 2010 at 10:47pm Community Member, 33 Posts

"Build task 'FlushGeneratedImagesTask' not found. "

Sorry, my fault as I forgot to mention that we are still on 2.3.4, and that class does not seem to exist in that version. It gave me an error and looking at the API docs, it does not seem to be present in the 2.3.x codebase. Unless I am missing it?

Is there a manual way that I can achieve the same effect? Do I just need to clear down all the files in the _resampled folder under the user's folder in /assets?

Do missing files in the _resampled folders get automatically regenerated as needed? ie is it always safe to delete them?

Thanks in advance.

Avatar
x75

22 September 2010 at 10:55pm Community Member, 42 Posts

Hi,

as far as I know you can just delete the _resampled Folders. I would move it, to try it out :)

According to the docs [url]http://doc.silverstripe.org/image#clearing_thumbnail_cache[/url] you can also try calling: http://www.mysite.com/images/flush

But I don't know if that (still) works.

Johannes

Avatar
Sparrowhawk

22 September 2010 at 11:37pm Community Member, 33 Posts

The latter method gave me a permission denied error on my local dev copy. I think we'll try the fully manual way for now (ie copy folder and then delete contents to see if it auto-regenerates)

Many thanks for your time and assistance

Avatar
Sparrowhawk

27 September 2010 at 9:14pm Community Member, 33 Posts

OK, deleting the thumbnail images did the trick. Thanks again.