Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Caching IP For Hit Counter?


what's the easiest way to cache an IP for use in a page hit counter, so that if the viewer clicks 'refresh' the counter won't increase; ie it'll only increase when unique viewers access it.




View Complete Forum Thread with Replies

Related Forum Messages:
What Caching Does.?
I am currently writing a PHP program and I am just wondering what Caching does.

View Replies !
Caching
I want to make it so that browsers will cache the images, scripts and css pages from my site, but not the php pages themselves. Is all I need to do add this?

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');

View Replies !
PHP Caching
in my php.ini I have set the following properties:

ob_start("ob_gzhandler");

in order to speed up my pages. The problem is I have a user profile page and when the user updates their picture, the new one won't show up unless they refresh the page. Even when the click on the picture which is pointing to a .jpg file.

it shows the old .jpg file from cache unless they refresh that page as well. How can i cache the php pages so it loads faster, but on certain pages remove this cache so it reloads everytime? i'm also using these headers in the profile page:

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

View Replies !
Caching Images
Is there a way to set different levels for different content?

I have been looking at different sites with cache tuts and docs and many seem to imply this can be done how fail to mention how. Each one states the syntax for producing http headers for the document being requested which is straight forward enough, but what about the objects within the document?

I would like to cache images for a relatively long period of time but allow dynamic content (php) to be updated very frequently.

Anybody have any input/links?

View Replies !
Caching Pages With Php
In this post I will try to give a view of what is the custom caching with php, why and how we can use it.In the modern days, most of the sites are database driven. That means that your site is actually an application which retrieves data from a DBMS ( database managment system, eg MySQL) , parses the data and shows the result to the user. Most of these data are usually don't change frequently or don't change at all, and the reason that we use the database is that we can easilly update the site and the content.A problem that this process creates is the server overhead. Every time we execute a query in the database, the instance of our script will call the DBMS, and then the DBMS will send the results of the query. This is time consuming, and especcially for sites with heavy traffic is a real big problem.How we can solve this problem?There are two ways to solve this if you want to make your site faster. First is optimizing the quesries, but we will not talk about this at the present article. The second and most valuable is using some kind of custom caching technique. Custom caching with phpFirst let me explain the idea behind custom caching. When we have dynamic pages that their data is not updated frequently, we can use a 'system' that will be able to create the page, and then store it for later use. That means that after the page's creation, our application will not run the queries again in order to display the page, but it will show the cached one. Of course this system must be able to keep the cached pages for a time period that we will set.Let's code itHere is a simple class that will do the job. Let's see the code first:

View Replies !
Caching Php Pages?
HOW to make my pages freshly loaded by default. this is a problem when pages get cached that query databases because when you go there you get the cached page as opposed to the page updated with the database's info.

how do you get pages to automatically load themselves from the server, not the cache?

View Replies !
Caching Problem
I have a problem with caching. Basically I have input forms where people add content but it seems to retain the pages in the cache so when they go back to edit them, they get the old cached version which does not reflect their changes.

To see the changes you have to force a refresh using CTRL + F5.I've got this at the top of my code file but it doesn't seem to help:

header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");

View Replies !
Caching Problem With GET
When I insert into my code a redirect to the current page, e.g.

<A HREF="news.php?item=4">News</A>

It doesn't work and seems to bring back pages that have been cached by my server (I'm hosted by an ISP) and processes the code as if a different value has been passed in. If I change it to:

<A HREF="news?item=4">News</A>

i.e. remove the extension, then all seems to work fine, but all the sites I've been to include the extension.

View Replies !
Sessions And Caching
I've constructed a series of 5 forms for the user to fill in, at the end of the series, there's a final page which displays the input, and allows the user to go back and edit each form.

Each form has 4 "modes". They are:

1 (One)- User input of info into blank page
2 (Two)- Validation/handling of the above input
3 (Three)- User editing existing info
4 (Four)- Validation/handling of the above

The final form (the one which reviews the input) sets $_SESSION['edit'] to true. Quite straightforward eh? So if any of the 5 pages is accessed and ($_SESSION['edit']) then I've made the script go to mode 3: PHP Code:

View Replies !
PHP & RSS -- Caching Requests
To start, I'm pretty experienced with a lot of aspects of PHP but I've never gotten into caching.

On a lot of sites there's a request of how often you grab an RSS feed. For instance, on Del.icio.us there's this message:

"Please do not poll any single RSS feed more often than every 30 minutes. RSS feeds are not updated more than twice an hour, and you will receive an error if you try to crawl more frequently."

What's the best way to pull RSS feeds and still abide by sites like del.icio.us' terms/requests?

View Replies !
Caching Jpg Files
A question about caching jpg files, I have pages where dozen of jpgs
are displayed at once. Those jpgs come from resizing jpgs, so this is a
costly way for server (computing jpgs and send them to client).
So is there any way to cache resized jpg to avoid them being resent
every times ?

View Replies !
Session Caching
I submit a value in a form on go to the next page, where I fill in another value and post that to the next page, then I hit the browser back button to change 1 of the values and resubmit but the problem is that it is not updating the overwritten value?? Is this a session problem or my browser?? ANd is there a way I can solve this???

View Replies !
Browser Caching ?
Let's say I have a page that is primarily HTML but I added a few small parts
that are PHP, for example a random banner. The page is in no way PHP driven,
it just has some some random stuff like the banner and/or a tip of the day.

What bothers me is that the PHP page won't be cached, so if the page has a
lot of links and, on average, the user clicks ten links (hitting the back
button after he does that) my bandwidth usage increases tenfold.

I think I can send cache headers but I don't know much about them. Is it
possible to set it for, say, an hour so that if he hits the back button
he'll get the same banner/tip of the day that he originally got (because
he's looking at his cached page) and only after an hour will he get a new
random banner/tip ?

View Replies !
Caching Classes
I'm getting a really odd behavior with php. It is caching my classes.

I have a very simple file:

<?php
class testclass{
}
?>

The first time I run the page it works correctly and creates the class. If I run it again it simply does this:

Fatal error: Cannot redeclare class testclass in C:Inetpubdefaultindex.php on line 2

It doesn't matter what class name I use. The first time it executes it saves the class for future requests.

My setup is IIS 6 on Windows Server 2003 PHP 5.2.1 installed as an ISAPI extension. If I restart IIS it seems to clear this cache and executes correctly the first time. But then it stays cached.

*note This also occurs with define such as:
define('test', true);
executes the first time, states it is already defined the second.

Anyone have any idea what would be causing this to happen? I've never seen this situation before.

View Replies !
Pre Caching Screen
I have a site that generates whois quieries, securiy reports on domains etc and thus because of this it can take a while for pages / content to be cache and loaded into the browser. I was wondering if there is a way to create a loading screen until the page is generated. Perhaps this could be done with javascript however the rest of the site is php and id like to keep it that way. any code examples or can help in some other way?

View Replies !
Preventing Caching In PHP
I am trying to force the back-button to re-load a page in IE, but even the following stripped-down script, based on http://uk.php.net/header, is not working:

<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

$timenow = time();
echo date("r",$timenow);
?>

I'm using php 4.3.4

(Note that the ASP script at http://support.microsoft.com/kb/199805 does work, but I haven't been able to successfully combine it with my existing php code). Am I missing something very basic here?

View Replies !
Smarty Caching
Smarty is currently creating cache files with the owner:group nobody:nobody. This is preventing unlink and chmod from working. How can I change this to the owner of the Smarty class?

View Replies !
Caching & Headers
One of the more typical ways to determine if a file needs to be recached is by using filemtime() the check it's modification date against a sort of expiration date. The expiration date is typically something that could come from the database.

I'm trying to circumnavigate the database entirely...so I can't check the modified date against a dynamically created date (the settings for this come from the db). I haven't tried this, but it does seem possible that I could set the modified date by hand using a header(). However, I'm not sure if all browsers would deal well with this and perhaps more importantly this is a bad practice.

I could access the modified time (as I would set it in the future) and if it was less than the server time() now then we'd recache it.

The other thing I'm wondering about, perhaps there is a way to access the header('expires') setting via php?

View Replies !
Caching Forms In IE 5.5
When a user hits the back button to return to a form(ex: to fix an input error), how can you cache the field values in IE 5.5, so that the user doesnt have to retype everything?

For IE 6 this works:

header("Cache-control: private");

However it has no effect on IE 5.5

View Replies !
Caching Output
I am having difficulty finding the best way to cache output of PHP functions. I basically have a set of PHP functions that I would like to cache the HTML output of. My plan right now is to cache each output individually, using a caching prog like cache_lite, as 1.cache, 2.cache, etc.

I'm caching them separating because I would like the user to have the option of deciding where they want each PHP output displayed. Then, I will use fopen, fread commands to read the output in the main HTML document. I am worried that this isn't a very optimized way because I would have to issue separate fopen calls for different files. If there are many users, this might hurt performance. Is there a better way to store HTML output of separate PHP functions? Perhaps in just one array?

View Replies !
Output Caching
I am facing a problem that user enter user name, password and clicks on login button. After clicking button i do Login authentication and load user profile and prefrences during this backgroud process i want to show "Please Wait. Loading..." message on screen but it is not showing this message it show this label after all procesing and when page is completely loaded.

One same problem like. We query the database suppose there are 100 lines we have to show all on same page then i want to show result as Google do as soon as it found result it show it on screen not as load complete page in one time. What is this problem. May be i am not asking in technical language so sorry for that.

View Replies !
Magpie RSS Caching
I am using Magpie RSS and want to change the Caching period to half an
hour instead of one hour.

I have modified the line in RSS_CACHE.INC so that it reads:

var $MAX_AGE = 900; // when are files stale, default one
hour

but this doesn't seem to have any effect. It still only gets a fresh
version of the file every hour.

View Replies !
Preventing Caching
I am trying to force the back-button to re-load a page in IE, but even the following basic script, based on http://uk.php.net/header, is not working: Code:

View Replies !
Image Caching
Is image caching in php possible. I have my site http://www.***********.com. It consists of large amount of repeative images Is it possible that i retreive image from the cache memory?? Or is it any other suitable way that image don't get loaded from server regularly

View Replies !
Query Caching
SELECT avail_credits from credits where login='$login' limit 1

The above query repeats every 30 seconds.

The first time the query is run, it returns the correct result. After that, the result returned is the same, even though I know for a fact that the value has changed.

So, it appears mysql is caching the query. Hence, I poked around for a way to turn off caching, which turned up:

SELECT SQL_NO_CACHE avail_credits from credits where login='$login' limit 1

Specifically, I'm using AJAX to carryout the repeated queries.

Any suggestion on how to solve this problem?

View Replies !
Quality Caching
I have been running sites on php and mysql for a few years now and some of my old sites have become _really_ clunky with out of date code and cumbersome queries to my databases.

What is particularly silly is that many of the pages call the database to check up on data which only get updated a few times a week. So I am planning to set up the site to run a little faster. I have had a couple of ideas of how to do this and wanted to get anyone's thoughts/experience around this.

My thought is to have a static php page (with just adserving as an included script) which gets rewritten every time I or a user updates the database... is this a good way to progress? How does everyone else do caching?

View Replies !
Caching Question
I have a database table "categories". The content of this table do not
update regularly, So I have imported the content of this table in a
text file "categories.txt". Now I have several mysql queries like

$cat_query=mysql_query("Select * from sbbleads_categories where sb_id=" . $cid );
if ($cat=mysql_fetch_array($cat_query))
{
$catname=$cat["sb_cat_name"];
$category=$cat["sb_id"];
}

I want instead of quering mysql database every time which can use much
CPU resources Can I query the text file "categories.txt"?

View Replies !
Caching JS Generated
Im developing a service where my registered users must include a javascript on their websites.

Since each user has different config settings on my service, they must all identify themselves with an ID, for example, user John Doe must include this piece of code in his site:

<script src="http://blabla.com/script.php?id=384" type="text/javascript"></script>

That way the javascript that will get printed will use his own settings. What i need to do now, is to reduce my server's requests by properly caching the data. A friend told me to use this in the top of script.php: Code:

View Replies !
Caching With Header
I'm having difficulties trying to get PHP caching using header with apache2's mod_cache. From my understanding, PHP header caching using cache-control and expire needs mod_cache running. I have set a default timeout in mod_cache but it only caches some contents. Using the PHP header should enable us to cache more stuff and overwrite the expire time set in cache_control. I've done a few tests where header cache expires after 30 secs which works but afterwards it always refreshes the contents from the server.

View Replies !
Http Caching
Most of my site is dynamic in nature. What is worse is that every page is customized towards the user. So for every logged in user the page differs, however for the not logged in users its the same. Two questions:

1. Regarding authentication and http caching, are there any security risks?
2. In the situations above, would it still be desirable to support caching (I was thinking of using etags)

View Replies !
Apache 2.0.45 + PHP 4.3.1 Caching Problem
I had some hardware problems with my old machine so I
had enough reason to set up a new one :

Gentoo 1.4 + Apache 2.0.45 + PHP 4.3.1 + MySQL etc.

I took the applications from the old server and put them
onto the new machine. So far so good.

After a while I saw some *really* strange behaviour :

What ever I did, IE cached every dynamically created page.
I thought I could remedy the problem by adding some
meta pragma HTTP heads into the html templates.

Didn´t work.

I added hardcoded Header Flags directly into the
php code.

Didn´t work.

On the old machine everything works fine.

IE just shows the *current* db generated content
once you press ctrl + F5.

Neither just pressing F5 nor hitting the link to
the page again shows the current content.

That is really bad if you´re running a message board
or something with changing data per minute

Is there anything new to apache or php I am not aware of ?

View Replies !
Caching Php Files Difficulty
I need to execute a php file with mysql requests on the server without the file being sent to the client. I'd rather have the result of the execution of the php file being written in a plain html file on the server. I've tried turning output buffering on, but unable to get content.

View Replies !
Secure Login Caching?
I am using the following session functions at the top of each protected page:

session_cache_limiter('private');
session_start();

the problem I am having, is i find if the customer just clicks refresh, it will not update the info on the page from the database. I have to actually hold crtl and click refresh to do a complete reload of the page. Is there anyway around this? What is the best way to cache "secure" pages?

View Replies !
How To Stop ODBC Caching On IIS
I've got a small test program that reads a remote file using ODBC with a
local system DSN :-

<?php
session_cache_limiter('nocache');
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
<html>
<meta http-equiv="refresh" content="10">
<?php
if (!$link_id = odbc_connect ('secpay','','')) die("Failed to connect to RMS
database"); //Links to database
var_dump(odbc_error($link_id));
var_dump(odbc_errormsg($link_id));
echo "connected to secpay!!";
$sql = "SELECT * from dist_write:secpay;";
$exec = odbc_exec($link_id, $sql);
var_dump(odbc_error($link_id));
var_dump(odbc_errormsg($link_id));
var_dump($exec);
odbc_result_all($exec);
?>

The program reads the rows without a problem, but if I delete the source
file, the script continues to return the rows and doesn't show any errors.

I believe this to be an issue around IIS. If I execute 'IISRESET' to restart
the service, the script starts to return 'No Rows' instead.

Does anyone know how I can force IIS to stop caching this query/PHP script,
and always read the file?

View Replies !
Caching PHP GD Dynamic Images
I have a PHP script that takes a handful of parameters and outputs a graphic based on those parameters. The file name is a direct representation of the input parameters. For example (widgetized):

image.php?a=red&b=big&c=png outputs the file red.big.png to the web accessible directory /output/

I've actually already picked a way of caching the output of this script but would like to discuss possible alternatives and get a feel for "best practices" in this area. Here are the two general methods of caching I had originally considered:

Method A) The PHP script is called through an <img /> tag and first uses the file_exists() function to see if the image has already been made. If it does exist, the PHP script uses the header() function and the readfile() function to output that existing image. Or if it does not exist, it generates the image, writes it to the static position then uses header() and readfile() to output the image.

Method B) The images are called using the static path in an <img /> tag. The directory /output/ uses a custom 404 error page (image.php) which parses out the $_SERVER['REQUEST_URI'] with the explode() function to populate the input parameters and generate the image. It puts the image in the static folder, then uses header() and readfile() to output the image to the server.

1. What are the pro's and cons to these two different methods of caching the images?

2. Is there any reason why either method *can't* be used?

3. What other methods are there? Or, how would you improve on these methods?

I'd appreciate your input on this subject, or if you can recommend other Apache directives/PHP functions that would be useful in this scenario.

View Replies !
Page Keeps Caching Old Data, How To Fix?
i have a php page that has a series of check boxes in it and you press the update button after unticking some boxes and ticking others. after the page updates the changes actually take place in the database but the page displays the old state where it was before you ticked and unticked the boxes. as soon as you press Ctrl + F5 it actually updates the page to what is in the database.

how can i fix this so when i press the update button it refreshes and doesnt cache the old state?

i have the following in the header but it dont seem to work, is there anything else i need to do?

<meta http-equiv="pragma" content="no-cache">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

View Replies !
Caching A Part Of A Page?
I am working on a custom banner generator for some of our users.

Its basically a flash banner that can take vars for colors etc, so users can integrate with their sites colour scheme.

Its set up currently with the banner at the top as a preview, with e.g. .swf?color1=00000&color2=45efef in the object and embed tags.

Below this is a script that is 3 nested for loops, that increment a var each and convert that to hexidecimal. The three hex refs are then concat'd together, and set as a CSS background to a transparent gif with an href around that calls the same page with the new colors in the url, which get passed back to the flash movie. (hope im making sense here :))

So theres about 500 or so (im incrementing the vars by two,otherwise its way sloooow) <a><img></a> that have to be generated on each page load. Im wondering how and if i can speed this up?

View Replies !
Smarty Caching Logic
How long does a $smarty->clear_cache(..., ...) function take? More specifically, how long would it take to run 300 or more of them?

I'm implementing Smarty's caching in my application, and when a user lists himself in three hundred cities, I need to clear the cache for those 300 city pages. So should I run a loop that clears the cache for all those city pages, or should I let the cached pages expire every five or ten minutes? Or is there some way I can take advantage of cache groups (the a¦b¦c thing as described in the manual)? Maybe there's some way I can pass an array of $compile_id's to clear_cache()...

View Replies !
Image Caching In Firefox
I have been trying to create a slideshow of random pictures on my website. It has been quite succesful (it works perfectly in IE) but Firefox refuses to cooperate... It seems to have something to do with the way Firefox caches pictures, but I'm not sure.

There is a html file, which puts rotate.php as a picture on the page.

There is a javascript file, which puts a new rotate.php in the image frame every four seconds.

There is a PHP file, rotate.php, which randomly outputs a picture.

I'm not sure I'm posting this on the right forum, since PHP, HTTP headers and javascript are involved and I don't know what part is causing the problem.

I'll post a part of rotate.php below..

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
thumb($filename, 170, 170); // thumb is a working thumbnailgenerator, it outputs correctly in both browsers)

View Replies !
Preventing Image Caching?
I have a script that dynamically draws images, and I output the image to the screen like this:

<p><img src="image1.jpg alt="bar graph" /></p>

My script changes image1.jpg everytime it is executed, but the browser is caching the first occurence of image1.jpg, so I am not getting the new image1.jpg to display. I know that the image is being redrawn because I can go check image1.jpg in my directory, and see that it is updating, but my script does not reload the latest version. Any suggestions?

View Replies !
Caching+file Locking
I've configured apache to fetch filename.htm if user requests
filename.htm. But if filename.htm does not exist, apache will call
index.php.

Now, index.php will generate a page, buffer it using ob_start and then
save it as filename.htm (thus, effectively filename.htm is cached as
static
file on server hard disk)

Every 10 minutes a cron job deletes filename.htm

So all users requesting filename.htm would be served with the static
version if it exists, otherwise a latest dynamic version created by
index.php.

Any comments about using this type of caching technique..? Any
concurrent read/write problems that anyone foresees?

View Replies !
PHP Image Generation & Caching
My basic problem is with a page (HTML) which is intended to display an
image slideshow. On this page there are a number of links to click
(one for each slideshow topic) and a "TV screen" to view the results.

The images are stored on the server as (big) JPG files - and when they
are downloaded for the slideshow, I resize them with a PHP script
"im.php" :

$filename = $_GET['filename'];
header('Content-type: image/jpeg');
..
..... open $filename & do the resizing
..
imagejpeg( ...

After a link is selected, I preload the set of images with Javascript
by doing :

im[i].src = "php/im.php?filename=" + getFName(i); // for each in the
set

where getFname(i) returns the i'th image in the set.

I then start the slideshow (I've got things in the Javascript to make
sure all images are preloaded before starting)

Now, my problem is that the browser doesn't seem to be caching the
images and keeps making server requests during the slidehow (which
rather defeats the idea of pre-loading)

If I "cheat" and replace the preloading with :

im[i] = getFName(i);

it works fine (i.e I can switch the server off & it continues to show
the slideshow).

This happens with all browsers I've tried (IE6, Firefox, Netscape)

View Replies !
Content Management And Caching
I use PEAR Cache to cache the frontend pages of a content managed web site.
Now I update the contents of a page, and of course the updated contents will
only be displayed after the expiring period of the cached file.

After thinking and googling a lot I see several possible approaches to for
handling this, each of which has it's downsides:

- Use a very short expiring period. (Downside: Makes caching only relevant
at very high visitor frequencies.)

- Change database, add modification date to every record - and compare
creation date of cache files with modification dates of contents. (Huge
overhead; must first detect which tables and records the page uses at all.)

- Flush cache everytime an admin page is called, or within the insert,
update, publish etc functions. (Empties whole cache also if only a comma is
changed.)

- Provide an "flush cache" button for the administrator to use after
finishing changes. (Administrator will forget it.)

View Replies !
PHP Caching Output Of A CGI Script
I am calling a script using php's virtual() function, which works in the same way as adding <!--include virtual="".. to a page. This works nicely and my site is working well.

I'm looking for a way to speed up some of the index pages, which call a script several times. I've tried caching the output using cache_lite, cgi_cache and several other hotscripts scripts, but each has the same problem. They all cache the page up to the point where virtual() is called, then stop. Until the cache timer runs out, only the top fragment of the page is displayed. The full page then displays, but only once, and if the page is refreshed, only the top fragment again.

Has anyone seen this problem and know of a reliable way to cache pages that are called in this way?

View Replies !
Saving/Caching Webpages
I am looking for a way to save a webpage in full using PHP. I need to save the page in full (images, scripts etc) from specified URL.

View Replies !
Disable Browser Caching
Today I'm using:

<html>
<head>
<meta http-equiv = "pragma" content = "no-cache">
</head>

This prevent the browser to cache the page. So each time I call the following PHP script:

<?php
echo date("d.m.Y") . " / " . date("H:i:s") . "<br>";
?>

the current time will be displayed. However, if I call this PHP script over a proxy the time gets not updated. I always have to press Shift + Reload.

View Replies !
Browser Still Caching After Headers
Code: Even after I use these headers I still can use the back button to see restricted pages after I have logged out of my web application. The browser is still caching the page in IE and FF.

Does anyone know how to fix this problem? I've been trying for awhile. I put the headers at the very begining of the file, a line after <?php. I don't know what else to do.

View Replies !
Caching Data In File
I have a site who parse XML news and store info in my site. My users read articles like every time parsing remote site. How can I use cachein this situation? Code:

View Replies !
Caching Query With $_SESSION
would it be better caching a fairly complicated query inside a session rather then redoing the query on every page? The content stays fairly static and would only need to be re-cached on every login.

View Replies !
Caching Mysql Data
I don't know if this would be caching or something else but how would I let the user view pulled mysql queries and have the data stay the same after a certain amount of time. I have a counter and I'm trying to avoid users seeing the number go up every time they refresh (impressions, not unique). Something like the database updating every X amount.

View Replies !
Caching Dynamic Pages
I have spent the weekend reading articles about how to creat cached pages
for your web application to increase speed and reduce cpu/server load.

However, I honestly don't know what is the best/most current technique
being employed. Most of the articles I read were several years old, including
one on ZEND that was almost five years old.

View Replies !
Caching Query Results
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature.

So now I dont know if doing the PHP caching is worth the pain. Would there be any noticed performace improvement if I cache query results in PHP,considering that MySQL is already caching the queries?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved