| Young Writers Society - Community Forums For Young Writers |
|
This thread was created on August 26, 2006
 |
|
Topic ID: 9848
|
View previous topic :: View next topic |
| Author |
Message |
Nate
Chimpy Site Admin

 Gender:  Age: 25 Joined: 15 Nov 2004 Posts: 4987 Reviews: 169 Country: USA 748 Points
|
Posted: Sun Aug 27, 2006 5:15 am Post subject: |
|
|
Aha! Fixed it, I think. Did a little research, and found how to write the cache for the recent topics block to a specific file. However, that file gets deleted every time someone makes a new post. Then that forces a new cache file to be created.
In any case, what that means is that every now and then, the front page will still take some time to load as the server will be busy writing the new cache. But most of the time, the front page should load in a split second. |
_________________ Site Admin & Webmaster
www.youngwriterssociety.com/ywsblog
Do You YWS? If You Do YWS, Put "Got YWS?" In Your Sig! |
|
| Back to top |
|
|
|
David Guinness
Speaker of the Forum

 Gender:  Age: 17 Joined: 16 Dec 2005 Posts: 662 Reviews: 114 Country: USA 300 Points
|
Posted: Sun Aug 27, 2006 2:34 pm Post subject: |
|
|
That's wonderful, Nate. I've tested the front page twice just now. The initial load to the domain took about 10 seconds, and the second time took 6 seconds. Both times the loading was very clean- Although it took a little longer than you'd like, everything appeared on the screen at the same time, instead of each image file loading up separately.
BTW: Individual posts, especially ones from the View Posts Since Last Visit screen, load up lightning fast.  |
_________________ David Guinness |
|
| Back to top |
|
Nate
Chimpy Site Admin

 Gender:  Age: 25 Joined: 15 Nov 2004 Posts: 4987 Reviews: 169 Country: USA 748 Points
|
Posted: Mon Aug 28, 2006 4:26 pm Post subject: |
|
|
Some info...
The front page caching has been turned off until I figure out how to make the recent topics list work properly. The method I worked out and described above actually increase load times.
User profiles were another area that took a long time to load, so I went through the code and discovered it was due to the "Who's viewed my profile" addition. Getting rid of that reduces load time from 7 seconds to .2 seconds. If you liked "Who's viewed my profile," it's gone now. I'm not entirely happy with that myself, but I much rather have something load immediately than twiddle my thumbs. |
_________________ Site Admin & Webmaster
www.youngwriterssociety.com/ywsblog
Do You YWS? If You Do YWS, Put "Got YWS?" In Your Sig! |
|
| Back to top |
|
David Guinness
Speaker of the Forum

 Gender:  Age: 17 Joined: 16 Dec 2005 Posts: 662 Reviews: 114 Country: USA 300 Points
|
Posted: Mon Aug 28, 2006 9:54 pm Post subject: |
|
|
Well, perhaps it's a good thing that the profile thing's gone. I don't really want to know if a certain member has viewed my profile 763 times.
Hm...Even without the front page caching, it's still loading up much faster than it used to. |
_________________ David Guinness |
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
| This thread was created on August 26, 2006 |
Graphics By Bobo | YWS Sword & Shield Logo by Bobo
Bartemius says, The beginning of wisdom is to call things by their right names. - Chinese proverb
|