chief
-
Total Posts
:
503
-
Reward points
:
39650
- Joined: Apr 17 '03
- Location: Fairhope, AL
-
Status: offline
|
Post attachments
Mon. Jan 19, '04 12:06 PM
( permalink)
I was happy to see in the photo gallery - all images and associated thumbs are deleted when a album is deleted - when an image is deleted individually, it's thumbs are deleted also. Now i'd love to see the same functionality with images attached to posts, ie: when a post (with attached images) is deleted, the images and thumbnails are also deleted. when an attached image is deleted from a post, it's associated thumb is also deleted. when cleaning orphan attachments, thumbs are deleted along with the images. after lots of testing image attachments, my upload and tn directories are getting messy thanks for consideration chief
|
|
|
|
Samuel
-
Total Posts
:
11853
-
Reward points
:
180670
- Joined: May 23 '01
-
Status: offline
|
RE: Post attachments
Mon. Jan 19, '04 12:22 PM
( permalink)
1) you can run "clean up orphan attachments" to remove attachments that are no longer associated with posts (deleted posts) 2) the entire tn folder can be deleted at any time, as the thumbnails are generated in real-time.
ASPPlayground.NET ~ see our Version 4 plans here
|
|
|
|
chief
-
Total Posts
:
503
-
Reward points
:
39650
- Joined: Apr 17 '03
- Location: Fairhope, AL
-
Status: offline
|
RE: Post attachments
Mon. Jan 19, '04 2:30 PM
( permalink)
ORIGINAL: Samuel 1) you can run "clean up orphan attachments" to remove attachments that are no longer associated with posts (deleted posts) 2) the entire tn folder can be deleted at any time, as the thumbnails are generated in real-time. I get that thumbnails are generated in real-time and the tn folder can be deleted. However, at least on my site, the tn folder is recreated and thumbnails are saved to disk upon the next viewing of the post (in calling thumb.aspx). What concerns me is the thumbnails are left behind when posts are deleted, when attached images are deleted or when cleaning orphan attachments. Think I'll work on that. thanks, chief
|
|
|
|
Samuel
-
Total Posts
:
11853
-
Reward points
:
180670
- Joined: May 23 '01
-
Status: offline
|
RE: Post attachments
Mon. Jan 19, '04 2:37 PM
( permalink)
thumbnails are created in real-time and cached for performance. Therefore, if you find that you need to reclaim some space on your server (running out of space, e.g.), you can delete the entire tn folder (once a month is reasonable). Or, you can just force the thumbnailer to stop caching by modifying this file: thumb.aspx. Removing the Try...catch block will stop the caching mechanism.
ASPPlayground.NET ~ see our Version 4 plans here
|
|
|
|
chief
-
Total Posts
:
503
-
Reward points
:
39650
- Joined: Apr 17 '03
- Location: Fairhope, AL
-
Status: offline
|
RE: Post attachments
Mon. Jan 19, '04 6:47 PM
( permalink)
Thanks for your suggestions Samuel. I do want the performance of caching the thumbs to disk, so I think, instead, I'll write a procedure to remove the thumbs when attachments are deleted. I see how you did it in the photo gallery and I believe I can replicate that with FSO. Thanks again, chief
|
|
|
|
chief
-
Total Posts
:
503
-
Reward points
:
39650
- Joined: Apr 17 '03
- Location: Fairhope, AL
-
Status: offline
|
RE: Post attachments
Thu. Jan 22, '04 10:15 AM
( permalink)
I was just looking at plans for 2.3 and i noticed the following: [2.3] improved attachment handling to prevent orphan attachments is this related to what we've discussed in this topic? thanks, chief
|
|
|
|
Samuel
-
Total Posts
:
11853
-
Reward points
:
180670
- Joined: May 23 '01
-
Status: offline
|
RE: Post attachments
Thu. Jan 22, '04 1:28 PM
( permalink)
It is somehow related. The entire upload process will be improved, but the thumbnail thing will work as it does now.
ASPPlayground.NET ~ see our Version 4 plans here
|
|
|
|