Announcement

Collapse
No announcement yet.

Forum Cache

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

  • Forum Cache

    When you update the display order in the Admin CP, the forum cache is rebuilt. What function is called to do this, and what file is it in? I'm trying to write a forum manager for a usergroup without Admin CP access.

    Here's what I tried to do, but it didn't work:

    I have a forum named "foo" and it's ID is 45, I want to be able to change the forum name to "Test" and then rebuild the cache so that the changes are reflected.

    PHP Code:
    $DB_site->query"UPDATE `forum` SET `title` = 'Test' WHERE `forumid` = '45'" );
    cache_forums(); 
    Could somebody please explain to me how you rebuild the cache?
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

  • #2
    theres a function to do that

    ACP > Import & Maiteance > Update Counters

    Comment


    • #3
      Nope, neither Update Forums or Rebuild Forum Information rebuilds the cache...
      Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

      Comment


      • #4
        Can anybody help me?

        I really need to know how to call the function to rebuild the forum cache...
        Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

        Comment


        • #5
          Did you look at adminfunctions_forum.php?

          or even look at admincp/forum.php? (the file that does the reordering of the display order?) line ~258
          Last edited by merk; Sat 3 Jan '04, 7:02pm.

          Comment


          • #6
            Yes... I did.. but the code that starts at "if ($_POST['do'] == 'doorder')" doesn't make a whole lot of sense to me.

            I see nothing related to using the datastore.

            I have tried calling:

            build_forum_parentlists();
            build_forum_child_lists();
            cache_forums();

            None of which yield the result...
            Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

            Comment


            • #7
              All three of those functions relate to the datastore ...

              Though, you should talk about this over at vbulletin.org im thinking :\

              Comment


              • #8
                Originally posted by merk
                All three of those functions relate to the datastore ...

                Though, you should talk about this over at vbulletin.org im thinking :\
                Yes, they are... at least from what I can tell

                And, I just posted on vB.org.. RC1 wasn't out at the time of posting, so I was forbidden from doing so.
                Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

                Comment

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