[resolved] How do you keep the blogs.dir up to date? (7 posts)

  1. David Sader
    Posted 5 years ago #

    I have hundreds of sites that come and go each semester, I delete sites via SuperAdmin->Sites all the time, yet the blogs.dir keeps swelling to the crack of doom.

    What do you multsite gurus do to purge unnecessary blogs.dir folders? Is manually checking blog_ids and deleting via ftp/cpanel the best way to go?

    Using a plugin to delete anything sounds scary. Looking for advice, assurance

  2. Crap, it's not nuking the associated uploads folders?

  3. David Sader
    Posted 5 years ago #

    Mine don't, don't tell me it's just me.

  4. Ron Rennick
    MultiSite Guru
    Posted 5 years ago #

    Check and see if there is anything under the blog_id directory (ex. blogs.dir/372) for that site. If those folders are empty, then it's working as coded and deleting everything but the {blog_id} directory.

    You can use the delete_blog hook to remove that folder. (Although that might be worth a trac ticket & a patch.)

  5. David Sader
    Posted 5 years ago #

    Indeed, contents of the folders are gone, but the folders remain.

    No problems, then.

  6. *whew*

  7. tdjcbe
    Posted 5 years ago #

    I would think that would be an issue actually because of the 32k (or less) directory limit with many *NIX based servers.

    If the directory is still there after the files are gone, that would be an issue. It really should be deleted.

    Although it's not as big of an issue as leaving the files.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.