I can't say anything about something you added to your vbulletin forum as this is photopost support so I dont know what your talking about.
Your stats cache updates every number of minutes that you have it set to in admin => global options. It is the same on showmembers showgallery or index.php. This is the query that is issued by the get_statscache function
Content visible to verified customers only.