View Full Version : Turn last post info off for guests
squishi
03-08-2009, 08:04 PM
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
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.