# Image caching problem

**URL:** <https://forums.plex.tv/t/image-caching-problem/1812>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [May 20, 2009, 4:45am UTC](https://forums.plex.tv/t/image-caching-problem/1812 "2009-05-20T04:45:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwray](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jwray/32/99832_2.png) [@jwray](https://forums.plex.tv/u/jwray)\
**Post date:** [May 20, 2009, 4:45am UTC](https://forums.plex.tv/t/image-caching-problem/1812/1 "2009-05-20T04:45:07Z")

</div>

Hi,  
  
  
  
Making progress on my plugin but hitting a snag that looks (to the naive eye) like it’s something to do with images and caching.  
  
  
  
I’m creating a list of directory items by, in a loop, calling  
  
  
  
dir.Append(Function(DirectoryItem(Channel, title=title), breadcrumb=title, url=url))  
  
  
  
which works fine. However, when I attempt to add a thumbnail image to the item with  
  
  
  
dir.Append(Function(DirectoryItem(Channel, title=title, thumb=thumb), breadcrumb=title, url=url))  
  
  
  
where thumb is a url to an image on the web site I’m parsing.  
  
  
  
I’m seeing a couple of odd things:

- First, all my directory items have the same image, rather than their specific thumb. The parsed urls are different.  
- If I remove the thumb=thumb to attempt to remove the thumbnail the image remains in the info list.  
  
  
  
Again, I’m sure it’s something obvious so pointers would be great.  
  
  
  
Also, I can’t get rid of the background art I tried once by specifying in the AddPrefixHandler. Similar issue/misunderstanding?  
  
  
  
thanks  
  
Jonny

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [May 20, 2009, 7:33am UTC](https://forums.plex.tv/t/image-caching-problem/1812/2 "2009-05-20T07:33:42Z")

</div>

> [@](#):
>
> - First, all my directory items have the same image, rather than their specific thumb. The parsed urls are different.

  
  
The thumbs are computed and stored based on the URL of the each item itself (the key) rather than the thumb URLs themselves. It's possible that you had incorrect data and they got cached incorrectly. Try clearing out ~/Library/Application Support/Plex/userdata/Thumbnails/Video (assuming it's a video plug-in) and restart Plex.  
  

> [@](#):
>
> - If I remove the thumb=thumb to attempt to remove the thumbnail the image remains in the info list.

  
  
That points to it having been incorrectly cached.  
  

> [@](#):
>
> Also, I can’t get rid of the background art I tried once by specifying in the AddPrefixHandler. Similar issue/misunderstanding?

  
  
It could be, yeah; the backgrounds live in the ...thumbnails/Programs/Fanart directory, you can clear them out.  
  
Sorry for the trouble :)

---

<div class="post-metadata">

**Author:** ![jwray](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jwray/32/99832_2.png) [@jwray](https://forums.plex.tv/u/jwray)\
**Post date:** [May 20, 2009, 3:33pm UTC](https://forums.plex.tv/t/image-caching-problem/1812/3 "2009-05-20T15:33:41Z")

</div>

Thanks for the reply. Not so much trouble as me not understanding the caching mechanism or how to clear it out. That should be enough to get me over this hump.  
  
  
  
Thanks,  
  
Jonny.

> [@](#):
>
> The thumbs are computed and stored based on the URL of the each item itself (the key) rather than the thumb URLs themselves. It’s possible that you had incorrect data and they got cached incorrectly. Try clearing out ~/Library/Application Support/Plex/userdata/Thumbnails/Video (assuming it’s a video plug-in) and restart Plex.  
>   
>   
>   
>   
>   
>   
>   
> That points to it having been incorrectly cached.  
>   
>   
>   
>   
>   
>   
>   
> It could be, yeah; the backgrounds live in the …thumbnails/Programs/Fanart directory, you can clear them out.  
>   
>   
>   
> Sorry for the trouble 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 8:26pm UTC](https://forums.plex.tv/t/image-caching-problem/1812/4 "2019-12-20T20:26:54Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
