# ContentBlocks Gallery caching thumbnails somewhere

**URL:** <https://forum.modmore.com/t/contentblocks-gallery-caching-thumbnails-somewhere/2636>\
**Category:** ContentBlocks\
**Created:** [April 6, 2025, 4:30pm UTC](https://forum.modmore.com/t/contentblocks-gallery-caching-thumbnails-somewhere/2636 "2025-04-06T16:30:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebc](https://forum.modmore.com/letter_avatar_proxy/v4/letter/e/73ab20/32.png) [@ebc](https://forum.modmore.com/u/ebc)\
**Post date:** [April 6, 2025, 4:30pm UTC](https://forum.modmore.com/t/contentblocks-gallery-caching-thumbnails-somewhere/2636/1 "2025-04-06T16:30:00Z")

</div>

In MODx 2.8.8, I have a ContentBlocks gallery and accidentally uploaded CMYK images which created off-color thumbnails. So I deleted the source images and my phpThumb cached images.

Inside the manager ContentBlocks shows a missing image, but if I refresh the public facing page, the off-color thumbnail still exists and a new thumbnail is generated and dropped into my phpThumb cache folder.

I did try deleting the images from the gallery, reuploading the fixed images, and readding them to the gallery. That didn’t help. It still creates the off-color image in the front facing page. If I create a duplicate image with a different file name it builds a proper colored thumbnail.

How is it regenerating the off-color thumbnail when the source is missing?

Or if this is something going on with phpThumbof, where might I look to find the problem?

---

<div class="post-metadata">

**Author:** ![ebc](https://forum.modmore.com/letter_avatar_proxy/v4/letter/e/73ab20/32.png) [@ebc](https://forum.modmore.com/u/ebc)\
**Post date:** [April 6, 2025, 5:27pm UTC](https://forum.modmore.com/t/contentblocks-gallery-caching-thumbnails-somewhere/2636/2 "2025-04-06T17:27:13Z")

</div>

I discovered something else interesting. If I disable phpThumb Resizer in MODx settings it will generate a new thumbnail with the proper color. The source file is still removed, so I have no idea how it is creating new thumbnails. If I turn resizer back on it regenerates or repopulates the off-color thumbnail again into the phpThumb cache folder.

Crazy!

---

<div class="post-metadata">

**Author:** ![ebc](https://forum.modmore.com/letter_avatar_proxy/v4/letter/e/73ab20/32.png) [@ebc](https://forum.modmore.com/u/ebc)\
**Post date:** [April 6, 2025, 7:05pm UTC](https://forum.modmore.com/t/contentblocks-gallery-caching-thumbnails-somewhere/2636/3 "2025-04-06T19:05:27Z")

</div>

I did an FTP search of the entire server and found another copy of the image stored in:

`assets/components/phpthumbof/cache/remote-images/MEDIASOURCE/.../ENDFOLDER/fullsizeimage.jpg`

I don’t know if this is a result of adding media source images to a ContentBlocks Gallery, or some kind of standard MODx media source feature? It seems like a waste of space to cache the full image which never gets seen by the public.

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [April 7, 2025, 3:45pm UTC](https://forum.modmore.com/t/contentblocks-gallery-caching-thumbnails-somewhere/2636/4 "2025-04-07T15:45:06Z")

</div>

That’s part of pthumb, it seems to think the image is stored remotely so it downloads a local copy for it.

Uploading under a new name should help and also make sure there’s nothing stuck in a browser cache.
