-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
updateStats
Description
Updates various stats.
Syntax
void updateStats (string $type[, mixed $parameter1[, mixed $parameter2]])
Parameter $type
Expected type: Enumerated String
Description: What type of stats to update
Possible string values Allowed values Description 'calendar' Updates the cache of the calendar information (upcoming birthdays, events and holidays) for a day before and after today. 'member' Updates the latest member, the total member count, and the number of unapproved members. 'message' Changes the total number of messages, and the highest message id by ID_MSG - which can be parameters 1 and 2, respectively. 'postgroups' Updates those members who match condition's post-based membergroups in the database (restricted by parameter1). 'subject' Updates the log_search_subjects table for the search index. The topic ID is parameter1, and the subject is parameter2 'topic' Updates the total number of topics, or if parameter1 is true, simply increments them.
Parameter $parameter1
Expected type: Mixed
Description: Used to specify specific conditions for the update (see above)
Parameter $parameter2
Expected type: Mixed
Description: Used to specify specific conditions for the update (see above)
Notes
- Statistic can be 'member', 'message', 'topic', 'calendar', or 'postgroups'.
- parameter1 and parameter2 are optional, and are used to update only those stats that need updating.
- The 'member' statistic updates the latest member, the total member count, and the number of unapproved members.
- 'member' also only counts approved members when approval is on, but is much more efficient with it off.
- Updating 'message' changes the total number of messages, and the highest message id by ID_MSG - which can be parameters 1 and 2, respectively.
- 'topic' updates the total number of topics, or if parameter1 is true simply increments them.
- The 'calendar' statistic updates the cache of the calendar information for a day before and after today.
- The 'postgroups' case updates those members who match condition's post-based membergroups in the database (restricted by parameter1).
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.044 seconds with 13 queries.
- Forum Search