vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Turn last post info off for guests (https://vborg.vbsupport.ru/showthread.php?t=207734)

squishi 03-08-2009 08:04 PM

Turn last post info off for guests
 
I want to turn the last post info off for guests.
Not only remove it from the template - it should be turned off, so that the query is not run for guests.

How would I do that?

Lynne 03-08-2009 08:30 PM

I *think* (someone can correct me) that the lastpostinfo is stored in the forumcache, so you aren't making a query for it.

squishi 03-08-2009 08:39 PM

Well, if it is in some cache, it still was query at one point.

But you are right in one point: it makes not that much sense to turn the queries off for one user group. Though, as there are more guests than members, the queries would not have to be run so often...

Lynne 03-08-2009 08:46 PM

Usually the cache would get update only when needed. So, a new post is made, and the cache for that forum gets update with a new lastpostinfo. It isn't usually something that is run every 10 minutes or whatever. (Although, there are some that are like that if you set them to be like that.)

I did a search in the vb folder for lastpostinfo and found the stuff in the functions_forumlist.php file. You can read it there and see if you come to the same conclusion I did.

squishi 03-08-2009 09:45 PM

Quote:

Originally Posted by Lynne (Post 1763470)
It isn't usually something that is run every 10 minutes or whatever. (Although, there are some that are like that if you set them to be like that.)

:confused: The last post info must be updated everytime a new post is made in that forum. So it only gets updated every 10 minutes, if no posts are made.

Or did you mean this is part of a scheduled task?

Lynne 03-08-2009 10:42 PM

No. I meant that the last post info is updated every time a post is made. Is it most likely NOT something that gets updated every 10 minutes.


All times are GMT. The time now is 02:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01500 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete