How can i set this so that it updates every 500 threadviews, without any conditionals? The server load on the mysql server is not a factor...it is the php server load that is an issue and something in apc is not playing nicely with this hack. I would like to keep it, but would prefer being able to set a fixed # at which it will dump.
I have been trying to use this:
PHP Code:
if (mt_rand(1,500)=='44'){//change these values to tweak frequency of writes
But it is not updating at 500 views.