vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Another attachment request (https://vborg.vbsupport.ru/showthread.php?t=34143)

Guru 01-15-2002 03:35 PM

Our attachment db has grown quite large, and is pushing us to buy extra storage space from our ISP. Most of these attachments are in threads that are long since dead and gone.

Is there a hack that will eliminate (prune) attachments based on the date of the last view of the thread? Or some other way to clean this database without affecting the text of the posts?

I'd like to keep our threads around for a long time, but I don't care if the attachments stay.

FWC 01-15-2002 04:39 PM

Tubedogg's Admin Functions hack will let you prune the attachments and leave the text. It doesn't check for last thread view, though. It's a very nice hack:

https://vborg.vbsupport.ru/showthrea...dmin+functions

Guru 01-15-2002 05:04 PM

Thanks. That would be a very good starting point.

Maybe I could hack it to display the last view date with the attachment?

I'll get to it when I've upgraded.

TLfuRy 09-30-2002 01:20 AM

Is there a way to make a hack that would search through and see which attachments are still actually in use on the forum, and let you delete those that aren't still in use?

Or does the attachment actually get deleted from the db when you delete a thread? My db is going to get WAY out of hand as far as size in the near future...and I want to get a handle on it before it gets critical.


All times are GMT. The time now is 10:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01783 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete