Author: ZacFields » Fri Aug 25, 2006 11:45 am
Sure, not a problem at all. Here is the rundown.
Instructions on using the Cache to speed up your forums
First, I'll explain to you why you are adjusting the Cache to speed up the forums. First of all, when you load up a page in IntegraMod, you're running many various queries to your database. However, the more queries you have to run, the slower that page will load.
It doesn't have to be this way... There are a lot of things on your IM blocks that don't need to be queried with every page-load. For instance, how often does your navigation menu change? Basically never, right? But still, as you navigate your site, your menu is being refreshed every single time. This is taxing on your SQL server and slows page loading.
This is where the Cache comes in. To put it simply, IM has the ability to store these blocks in a cache. So instead of querying the database for updated information, you can set some of your blocks to only refresh every XX amount of seconds. So when you open a page, blocks such as your navigation block aren't being queried every single page load but rather they are just popping right up almost as if it was hard-coded into the page.
Here are the instructions,
1. Go into your ACP and then click on the "IM PORTAL" tab.
2. Within the IM PORTAL tab, click on "Blocks Management."
3. Click on the "IntegraMod Default" (which is usually the only link in there)
4. Now you have a list of all the blocks in front of you. Look for all the blocks that say "YES" in the ACTIVE field and check to make sure it also says "YES" in the cache field. If not, you can click on the "EDIT" link and turn the cache on.
5. Now you need to decide how often do you need that block to be refreshed. For your navigation menu, (if you change it periodically) maybe just put 24 hours or 48 hours. (Remember the cache duration is in SECONDS, so you have to find out how many seconds you want before it will refresh)
Quick Cache Suggestions, these are the values that I run personally
-Donations Block: 172,800 (48 Hours)
-Board Navigation: 172,800 (48 hours)
-User Info : 3,600 (1 hour)
-Who is Online: 300 (5 minutes)
-Recent Topics: 300 (5 minutes) <-- many might disagree with this decision
-Welcome Msg on portal: 172,800 (48 hours)
-Latest News : 172,800 (48 hours) <-- my news almost never changes, so this suited me.
-Site Survey: 172,500 (48 hours) <-- many might also disagree with this one
-Mini Calendar: 86,400 (24 hours) <-- Not sure how this will affect it...but it made sense to me.
-Statistics: 300 (5 minutes)
-Album: 300 (5 minutes)
-Links: 172,800 (48 hours)
-Active Users: 172,800 (48 hours) I should also mention that I have it set to pull out the last 2 weeks worth of active users, so for most people this time frame won't work.
So there you have it. My portal page now loads between 1.5 and 2 seconds where usually it would consistantly load between 4 and 5 seconds.
Most other pages I have gone from 3.5 seconds down to well under 1.5 seconds.
Zac
Last edited by ZacFields on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.