Quote:
Originally posted by PPN
Here is a file to let you use a cron job to do it instead of in showthread, its more efficent in my opinion.
Open up the file and change the path to your config.php, upload now to your server, and then create a cron job.
Cpanel users can do this in the Advanced section
just type
php /home/path/to/deffered_views.php
and set it to run every 30mins
|
interesting idea... anything else needed to be done (edit files etc ? )
or just this 2 steps before this cronjob ?
Quote:
[1) ADMIN CP CHANGES:
Code:
Admin CP -> vB Options -> *NIX Load Limit -> set to any "non-zero number"
NOTES: I use 10 as the "non-zero number", but you can set it to anything you want,
You can view your current load on the main page of the Admin CP.
Remember that your board will be inaccessable when the server load goes
above this number, so don't set it too low! The "correct" number is a matter of debate. 
2) CREATE MYSQL TABLE
PHP Code:
CREATE TABLE my_threadviews (
threadid mediumint(9) NOT NULL default '0'
) TYPE=HEAP;
NOTES: Via PHPmyAdmin: paste the above into the box labeled "Run SQL query/queries on database ...."
|