Quote:
Originally Posted by Andreas
PHP Code:
if ($vbulletin->options['site_lifestatus_enable'] AND THIS_SCRIPT == 'index') { $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "datastore SET data = data + 1 WHERE title = 'boofocounter' "); }
Why not
PHP Code:
$db->shutdown_query(" UPDATE " . TABLE_PREFIX . "datastore SET data = data + 1 WHERE title = 'boofocounter' ");
on forumhome_complete?
=> Less code to process less often, yet same result (if you also remove the unnecessary option to turn off the feature -> if users want to turn it off they will simply disable the product).
|
How it that going to process less often? It will still run on every page refresh, right? I am running that in the global_shutdown hook already.