[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 180: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
IntegraMOD Home of phpBB Integrated Modifications 2006-08-26T18:13:36-07:00 https://integramod.com/forum/feed.php?f=17&t=1932 2006-08-26T18:13:36-07:00 2006-08-26T18:13:36-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14173#p14173 <![CDATA[Optimize Page Generation? Cache helps?]]>
"tmotley";p="14160" wrote:
News block - if you cache it, the index, categories, & archive links do not function properly. It just seems to refresh the page...

I turned off my news cache and it works again.


Yeah, I experienced the same thing.

Statistics: Posted Author: Master Dwarf — Sat Aug 26, 2006 6:13 pm


]]>
2006-08-26T16:04:23-07:00 2006-08-26T16:04:23-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14160#p14160 <![CDATA[Optimize Page Generation? Cache helps?]]>
[Page generation time: 0.4353s (PHP: 83% | SQL: 17%) | SQL queries: 40 | GZIP enabled | Debug off]

News block - if you cache it, the index, categories, & archive links do not function properly. It just seems to refresh the page...

I turned off my news cache and it works again.

Statistics: Posted Author: tmotley — Sat Aug 26, 2006 4:04 pm


]]>
2006-08-25T22:54:36-07:00 2006-08-25T22:54:36-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14089#p14089 <![CDATA[Optimize Page Generation? Cache helps?]]> Statistics: Posted Author: Master Dwarf — Fri Aug 25, 2006 10:54 pm


]]>
2006-08-25T22:45:47-07:00 2006-08-25T22:45:47-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14087#p14087 <![CDATA[Optimize Page Generation? Cache helps?]]>
DO NOT CACHE "User Info"

I can't believe I was so stupid. Basically, which ever user was browsing my website when it cached that block, his avatar and screen name was shown for the next hour (the length of time I had my cache set for that block)

So do not cache that block because it will confuse the heck out of everyone! lol

Zac

Statistics: Posted Author: ZacFields — Fri Aug 25, 2006 10:45 pm


]]>
2006-08-25T12:32:38-07:00 2006-08-25T12:32:38-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14060#p14060 <![CDATA[Re: Optimize Page Generation? Cache helps?]]>
But for anyone looking for a quick-fix to the page generation difference between IM and a standard PHP, you need not look any further than the cache.

Glad to help...couldn't find anything like this on the forums and I think A LOT of people can benefit from this. I understand why the defaults are the way they are...because if somebody is unfamiliar with the cache and they change something on their navigation menu and they load the page and that change doesn't appear on the page, then they get confused and think things don't work. But when you set it up yourself, you are aware of this and know that you can just go in and clear the cache and the change will be reflected.

But my advice for you guys would be to adjust it to however you feel is necessary for your boards.

Zac

Statistics: Posted Author: ZacFields — Fri Aug 25, 2006 12:32 pm


]]>
2006-08-25T12:01:37-07:00 2006-08-25T12:01:37-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14058#p14058 <![CDATA[Re: Optimize Page Generation? Cache helps?]]>
:mrgreen:

Statistics: Posted Author: found it — Fri Aug 25, 2006 12:01 pm


]]>
2006-08-25T11:45:51-07:00 2006-08-25T11:45:51-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14057#p14057 <![CDATA[Optimize Page Generation? Cache helps?]]>
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

Statistics: Posted Author: ZacFields — Fri Aug 25, 2006 11:45 am


]]>
2006-08-25T02:26:40-07:00 2006-08-25T02:26:40-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14035#p14035 <![CDATA[Re: Optimize Page Generation? Cache helps?]]>
Excellant results.....a good job..

Just one thing could you post how you did it so other users who do not know can benifit from what you learnt...if that is ok...

:mrgreen:

Statistics: Posted Author: found it — Fri Aug 25, 2006 2:26 am


]]>
2006-08-24T22:53:38-07:00 2006-08-24T22:53:38-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14032#p14032 <![CDATA[Optimize Page Generation? Cache helps?]]>
Before Adjusting Cache:
portal.php took 4.514 seconds

After Adjusting Cache"
portal.php takes 1.442 seconds

Worked wonders. I just gave a cache value to everything in the portal. Even if it's just 1 minute! It's better that way than having the cache turned off for stuff like the navigation menu. As long as you put a cache on it, it speeds things up so much.

I recommend everyone who has an integramod forum to adjust those values. Give cache to EVERYTHING. Even like the "Users visited in last 24 hours" block. Why refresh that everytime you load the index page? Nobody sits there for 15 minutes waiting for that thing to scroll through, so I set it for 24 hours.

Zac

Statistics: Posted Author: ZacFields — Thu Aug 24, 2006 10:53 pm


]]>
2006-08-24T22:30:36-07:00 2006-08-24T22:30:36-07:00 https://integramod.com/forum/viewtopic.php?t=1932&p=14030#p14030 <![CDATA[Optimize Page Generation? Cache helps?]]>
I feel as though I've been just losing member after member because IM just takes so darn long to load!

Can anyone explain to me a little about the cache of the blocks and such? I have heard that adjusting these can really help.

Like if cache is turned off for a block, and I want to turn it on and run from cache like every 24 hours... I can do this? I'm just a little confused on some simple stuff I can do to bring down this 4.5 second page generation time.

Zac

Statistics: Posted Author: ZacFields — Thu Aug 24, 2006 10:30 pm


]]>