1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mark All Forums Read is really doing one query for every forum?

Discussion in 'XenForo Development Discussions' started by Marcus, Nov 3, 2013.

  1. Marcus

    Marcus Well-Known Member

    I have several hundred forums, it really seems that every forum gets its own query when marking all forums read. Is that true?
    PHP:
      public function markForumRead(array $forum$readDate, array $viewingUser null){
           
    INSERT INTO xf_forum_read
             
    (user_idnode_idforum_read_date)
           
    VALUES
             
    (?, ?, ?)
       }
     
  2. xf_phantom

    xf_phantom Well-Known Member

    yes
     
  3. Marcus

    Marcus Well-Known Member

    OK it's fine for me, I do not want my users to click on that function anyway too much - they should be informed about the nice new content :)
     

Share This Page