Announcement

Collapse
No announcement yet.

Hourly Cleanup's functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hourly Cleanup's functions

    I couldn't find any sufficient info in forum and in manual on what exactly Scheduled Task's Hourly Cleanup #1 and #2 do.
    Could somebody fully explain their functions, please?

  • #2
    If you know PHP, MySQL, and vBulletin, you can read

    /includes/cron/cleanup.php
    /includes/cron/cleanup2.php

    Comment


    • #3
      If i knew php i wouldn't ask this question here.

      Comment


      • #4
        Cleans up old sessions, old searches, forum / thread markers, attachments that were uploaded but not used etc.

        Just general cleanup of old data.
        Scott MacVicar

        My Blog | Twitter

        Comment


        • #5
          What about old posts / threads? Are they deleted by Cleanups?

          Comment


          • #6
            No, exactly what scott said is what it does.

            Comment


            • #7
              If you want to prune/delete old threads after a specified period of time, you can set up a Scheduled Task to do this. I think most vB users would be pretty mad if, out of the box, it deleted people's posts.

              Some people believe in pruning/archiving. I don't. I want every post since the beginning of time.

              Comment


              • #8
                Originally posted by SecTa View Post
                I couldn't find any sufficient info in forum and in manual on what exactly Scheduled Task's Hourly Cleanup #1 and #2 do.
                Could somebody fully explain their functions, please?

                This is killing my server every hour to the point that it reboots my server..

                How important is this?
                How many times should I set this to run weekly?

                Comment


                • #9
                  Did you look at the contents of the 2 files:

                  /includes/cron/cleanup.php
                  /includes/cron/cleanup2.php

                  Another topic about this:
                  http://www.vbulletin.com/forum/showthread.php?t=181690

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...
                  X