Caching system for fast page loads has problems
Yesterday i enabled the caching system for fast page loads at "/include/smarty/libs/Smarty.class.php"
Code:
/**
* This enables template caching.
* <ul>
*[*]0 = no caching
*[*]1 = use class cache_lifetime value
*[*]2 = use cache_lifetime in cache file
*[/list]
* @var integer
*/
var $caching = 1;
But there are many problems with the pages. As you can see at alotporn.com the script do not show:
- -the rating
-tags
-video submitter
-e.t.c
Also the script do not cache the pages were the videos are playing. This mean that the cache system has no sense.
Re: Caching system for fast page loads has problems
To be perfectly honest, caching the templates (which is what this code does) is pointless. From a load perspective, it doesn't matter whether or not you are pulling from the actual template or from the cached version. The end result will be that a file on the server is sent from one location to another. If you have a high-load site (such as yours and, even mine at some point of its life), template caching isn't going to give us any help here.
Re: Caching system for fast page loads has problems
Nice site RAMMSTEIN,
I've tried the page caching too and it didn't help at all. Hey, can you share your my.cnf? my mysql is running at over 150% and I have a high end dedicated with 8GB of RAM
thanks
Re: Caching system for fast page loads has problems
Quote:
Originally Posted by bplex
template caching isn't going to give us any help here.
Yes that is true there is a need of all page caching without enter again to the php code. If there was i way caching the pages that the videos are showing it will be grate.
Re: Caching system for fast page loads has problems
Quote:
Originally Posted by topfreaks
Nice site RAMMSTEIN,
I've tried the page caching too and it didn't help at all. Hey, can you share your my.cnf? my mysql is running at over 150% and I have a high end dedicated with 8GB of RAM
thanks
Thank you, I have also speed problems i just changed the SQL connections to 400 but i still have problems. :(