WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Unused attachments issue

Version:
printPrint


Unused attachments issue
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 06/12/05 - 01:51 PM:
quote post
#1
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/13/05 - 10:49 AM:
quote post
#2
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?

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 06/13/05 - 02:26 PM:
quote post
#3
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/13/05 - 09:25 PM:
quote post
#4
Thumbnails are dynamically created when needed, the files are a cache to speed it up.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.