Hello everyone. I have been using integramod for about 3 years. I have over 7000 registered users 110000 articles. I have had many growing pains and site speed has always been an issue. I have done all the helpfull tips in http://www.integramod.com/forum/viewtop ... t=311#3044 and even upgraded to different VPS plans and I am now on a dedicated server.
Through out the day my server load would spike and make my whole site inaccessible or very slow during those times. After many hours of trying to hunt down the issue and changing my my.cnf settings multiple times I enabled the slow queries log. Looking at over 500 queries in the log the about 90% where queries like
SELECT this.topic_id AS thistopic
, next.topic_id AS nexttopic
, prev.topic_id AS prevtopic
FROM phpbb_topics this
LEFT JOIN phpbb_topics next
ON ( next.forum_id = this.forum_id
AND next.topic_last_post_id > this.topic_last_post_id )
LEFT JOIN phpbb_topics prev
ON ( prev.forum_id = this.forum_id
AND prev.topic_last_post_id < this.topic_last_post_id )
WHERE this.topic_id = n
ORDER BY next.topic_last_post_id ASC
, prev.topic_last_post_id DESC
LIMIT 1
You will need to goto viewtopic.php
I just edited out everything between
// Hide Buttons :: Added :: Start
and
// Hide Buttons :: Added :: End
about 50 lines of code
I then replaced it with
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
$previmg = 'topic_previous';
$nextimg = 'topic_next';
Functionally I can't tell a difference. Speedwise I can tell a HUGE difference. Maybe someone can explain why all that code was in there in the first place. This works for IM4.0 and IM4.1
I love the integramod project and I thought I would contrubute