Webmastersite.net
Register Log In

Unused attachments issue

Comments on Unused attachments issue

knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004

Total Topics: 20
Total Comments: 83
Posted Jun 12, 2005 - 2:51 PM:

I ran the unused attachment function in the admin panel and, it gave me a list of unused attachments. The problem is, after looking through the list carefully and inspecting the items, it appears there's at least one attachment on there that is still being used (a thumbnail to be exact). I've gone to the member album and, indeed the thumbnail is still in use.

As this gallery grows, I'm going to be real dependant on using this to clean-up all the unused attachments (memberavatars). Is there something I could do to trouble shoot this and figure out why this is happening?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 13, 2005 - 11:49 AM:

What's the file name? (Not that it's likely to be the cause, but it may help to know.) Also, is there anything unique about where it's from? It's a member album, not a public image I gather?
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004

Total Topics: 20
Total Comments: 83
Posted Jun 13, 2005 - 3:26 PM:

oK, I may need a little education on this one.

It's my understanding that when a photo is uploaded a thumb_whateverthename.jpg image is created for thumbnails (the image that I am referring to in this case is named thumb_tallahasseepix005.jpg). I had run the unused attachment function right after I was viewing this particular members' profile so, I knew that particular tallahasseepix005.jpg image was still in use.

Now, I wondered what would happen if I deleted thumb_tallahasseepix005.jpg. Upon deleting it, tallahasseepix005.jpg still displayed a thumbnail image so, I thought there might be another thumb image of it by a different name. I checked the attachments directory and could find no image matching the original.

So, I'm at a loss. Is ImageMagik generating these thumbnails dynamically from the originals? And, if it is, why are there thumb_....jpg images in the attachments dir? I cleared my cache to make sure the thumb wasn't being stored by my browser.

OK..OK..OK
I refreshed my attachments dir and, there was the thumb again. I guess that answers it, they are being generated dynamically from the original and being stored. So, if I assume correctly, I can delete all thumbs in the attachment dir and they will just generate themselves again when they are requested, right??

On the other hand, there were lots of thumbs in the attachments dir, why didn't they all get reported as unused?

Guess I'm still confused, can you give me the quick and dirty explaination?

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 13, 2005 - 10:25 PM:

Thumbnails are dynamically created when needed, the files are a cache to speed it up.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.