Clear CMS cache cron

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sticky
    Senior Member
    • Aug 2003
    • 411

    [Forum] Clear CMS cache cron

    How do I create a cron job for this?
  • sticky
    Senior Member
    • Aug 2003
    • 411

    #2
    Anyone?

    Comment

    • Lynne
      Former vBulletin Support
      • Oct 2004
      • 26255

      #3
      The place to ask for help writing custom code would be over on vbulletin.org, the modification site.

      (At one time I had posted an outline for writing your own cron job, so do search over there first.)

      Please don't PM or VM me for support - I only help out in the threads.
      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
      Want help modifying your vbulletin forum? Head on over to vbulletin.org
      If I post CSS and you don't know where it goes, throw it into the additional.css template.

      W3Schools <- awesome site for html/css help

      Comment

      • reefland
        Senior Member
        • Sep 2000
        • 1131

        #4
        I put one up on vbulletin.org a while back but have since disabled it on my site due to improved cache operations in the cms.
        sigpic
        Nation of Blue - Kentucky Wildcats Sports


        Some CMS Goodness: Add Avatar to Article

        Comment

        • sticky
          Senior Member
          • Aug 2003
          • 411

          #5
          Originally posted by reefland
          I put one up on vbulletin.org a while back but have since disabled it on my site due to improved cache operations in the cms.
          The one you put up does not work for me. Can you put up a new one?

          Comment

          • reefland
            Senior Member
            • Sep 2000
            • 1131

            #6
            I don't think it is no longer needed for 4.1.10.
            sigpic
            Nation of Blue - Kentucky Wildcats Sports


            Some CMS Goodness: Add Avatar to Article

            Comment

            • sticky
              Senior Member
              • Aug 2003
              • 411

              #7
              Originally posted by reefland
              I don't think it is no longer needed for 4.1.10.
              I disagree...

              Comment

              • reefland
                Senior Member
                • Sep 2000
                • 1131

                #8
                Whatcha seeing?
                sigpic
                Nation of Blue - Kentucky Wildcats Sports


                Some CMS Goodness: Add Avatar to Article

                Comment

                • Paul M
                  Former Lead Developer
                  vB.Com & vB.Org
                  • Sep 2004
                  • 9886

                  #9
                  One of the hourly crons already cleans up the cache.
                  Baby, I was born this way

                  Comment

                  • bamaster
                    Member
                    • Mar 2004
                    • 34
                    • 3.5.x

                    #10
                    Originally posted by Paul M
                    One of the hourly crons already cleans up the cache.
                    I thought so too. But I've noticed that I have to manually Clear System Cache to update the replies displayed in the CMS articles. When I promote a thread to an article, it will display the number of comments. But if someone posts a comment through the original thread, the comment doesn't display in the article view. It does, however, update the number of comments.

                    Thoughts?
                    Tony
                    http://www.allBowling.com
                    If bowling websites were a bowl a mixed nuts, this site is the cashews!

                    Comment

                    • Paul M
                      Former Lead Developer
                      vB.Com & vB.Org
                      • Sep 2004
                      • 9886

                      #11
                      Originally posted by bamaster
                      if someone posts a comment through the original thread, the comment doesn't display in the article view. It does, however, update the number of comments.

                      Thoughts?
                      It believe was never designed to do that, as comments should always be posted in the article, so the comments cache isnt expired when a new comment is posted [directly] in an articles associated thread.

                      However, from memory I believe the changes for VBIV-952 will actually change that, so the relevant comments cache is expired on a reply to the associated thread.
                      Baby, I was born this way

                      Comment

                      • C.Birch
                        Senior Member
                        • Apr 2002
                        • 405
                        • 3.6.x

                        #12
                        I still get a problem with comment counts for CMS, mine is the front page will show the right count, clicking read more will show all the comments most the time but the wrong count, clearing system cache fixes that.

                        Comment

                        • Paul M
                          Former Lead Developer
                          vB.Com & vB.Org
                          • Sep 2004
                          • 9886

                          #13
                          Its not really very clear exactly what you are referring to, but there is still one bug that got delayed to 4.1.12 - but that was for Static pages and PHP Eval pages, not articles.
                          Baby, I was born this way

                          Comment

                          • C.Birch
                            Senior Member
                            • Apr 2002
                            • 405
                            • 3.6.x

                            #14
                            Basically the articles on the front page (short versions) are up dating fine, but the version you see when you click read more to view it in full with the comments also is not updating and is needing me to clear system cache myself via admin cp.

                            Comment

                            • C.Birch
                              Senior Member
                              • Apr 2002
                              • 405
                              • 3.6.x

                              #15
                              Click image for larger version

Name:	Screen Shot 2012-03-04 at 10.16.54.jpg
Views:	1
Size:	70.4 KB
ID:	3686834

                              You will see that the top comment count does not match the bottom comment count, also a edit i made to the article does not show up.

                              Click image for larger version

Name:	Screen Shot 2012-03-04 at 10.17.37.jpg
Views:	1
Size:	67.8 KB
ID:	3686835

                              After i clear the system cache via admin cp both comment counts match and the article edit shows up.

                              Comment

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