Re: [PHP] How does caching work?

2009-06-09 Thread Stuart
2009/6/9 Paul M Foster : > This question may be too complex for a reasonable answer on this list, > but I'll ask anyway. > > If a page has static content (no PHP variables, etc.), I can > understand how caching works. The engine just checks to see if it's got > a copy of the requested page in the c

Re: [PHP] How does caching work?

2009-06-09 Thread Robert Cummings
Paul M Foster wrote: This question may be too complex for a reasonable answer on this list, but I'll ask anyway. If a page has static content (no PHP variables, etc.), I can understand how caching works. The engine just checks to see if it's got a copy of the requested page in the cache, and d

Re: [PHP] How does caching work?

2009-06-09 Thread Daniel Brown
On Tue, Jun 9, 2009 at 16:35, Paul M Foster wrote: > > But if a page is populated with variables from a database (for example) > which could change from time to time, how could a caching engine > possibly cache it? How would it determine whether to re-fetch the page > or use the cached version?

[PHP] How does caching work?

2009-06-09 Thread Paul M Foster
This question may be too complex for a reasonable answer on this list, but I'll ask anyway. If a page has static content (no PHP variables, etc.), I can understand how caching works. The engine just checks to see if it's got a copy of the requested page in the cache, and displays it if so, or fetc