Hello Guys,
Please help meme to cache mysql based text/html based cache to reduce server load and memory usages of server. I have tried memcached and its not giving much good response.
It givies time out error. Please help in disk cache.
//HTML Header
//connect mysql
$data = "APAC";
print'<div class="ad">'.$ad.'</div>';
$sql = "SELECT * FROM db WHERE cine = ''$data";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query))
{
echo"$row['id']";
echo"<br/>";
}
include"footer_zx.php";
How can i turn this to a cache script?
I can can cache this page into cache or somedir but that's not a solution. Problem is with ads. If i cache this page everything will be cached it will be big problem for
ads.
Is there any solution to cache all page expect ads and page will load from cache file after caching and ads will display without caching.
Please share your ideas and code how to get ride from this problem.
Thanks friends
Please help meme to cache mysql based text/html based cache to reduce server load and memory usages of server. I have tried memcached and its not giving much good response.
It givies time out error. Please help in disk cache.
//HTML Header
//connect mysql
$data = "APAC";
print'<div class="ad">'.$ad.'</div>';
$sql = "SELECT * FROM db WHERE cine = ''$data";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query))
{
echo"$row['id']";
echo"<br/>";
}
include"footer_zx.php";
How can i turn this to a cache script?
I can can cache this page into cache or somedir but that's not a solution. Problem is with ads. If i cache this page everything will be cached it will be big problem for
ads.
Is there any solution to cache all page expect ads and page will load from cache file after caching and ads will display without caching.
Please share your ideas and code how to get ride from this problem.
Thanks friends
Comment