The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Attachments in File Upload Manager
Does anyone know which one of the scheduled task is responsible for cleaning attachments that are not used in the file upload manager? It looks whatever cron it is supposed to be does not work, so none of the attachment gets cleaned up.
|
#2
|
|||
|
|||
I believe /includes/cron/cleanup2.php around line 64 to 72.
|
#3
|
|||
|
|||
Find the lines. The cron ( Vb 4.2.3 ) is not working and images are still sitting in the file management even after 1 hour.
Does anyone know the reason why this is not working? Has anyone manually deleted the images that are no longer associated with any posts? How did you go about cleaning it up? |
#4
|
|||
|
|||
Is the refcount column value in the Filedata table 0 of said attachment(s)?
|
#5
|
|||
|
|||
None of the attachments have "0" in the refcount at all . Is that why the cron fail?
|
#6
|
|||
|
|||
Yes. refcount is the reference count (or the number of references to that attachment). It has a strict check of 0 against it, which is why it doesn't delete the attachments.
|
#7
|
|||
|
|||
Quote:
Attachments with a ref count > 0 should never be deleted. |
#8
|
|||
|
|||
Quote:
Anyway to manually fix it? |
#9
|
|||
|
|||
I'm not aware of any bugs regarding attachments in the latest version of vBulletin.
|
#10
|
||||
|
||||
Quote:
I used the queries from this post: https://www.vbulletin.com/forum/foru...00#post3948600 There was a VBIV open for the failing cron cleanup, not sure if it was fixed in 4.2.3 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|