Quote:
Originally Posted by KirbyDE
Normally it does not, that's why I asked.
|
Oh shiete. You are actually right. Not sure what I was thinking.
Alright. To be sure I am quoting my own query right I'll post up the same verson i got online right now
PHP Code:
$sql = mysql_query("SELECT * FROM thread WHERE forumid NOT IN(3,6,11,12,19,20,24,28,29,31,32,34,35,36,37,38,40,41,43,44,45,48,49,50,52,53,58,61) ORDER BY lastpost DESC LIMIT 20");
Crap. I didn't have many right things in my first post.
I am querying the thread table.
Quote:
Originally Posted by amykhar
Swedie, what about caching? If it's such a large database, maybe you could create a cache for the last 10 posts. When somebody makes a new post, the cache is updated.
Amy
|
hmm, that could definetly be one way of doing it. I'll see about modifying the vB code to suit my needs.
Currently I am caching the result in a .txt file on the server. And the script only runs every 30 seconds.