RE: [phplib] Caching of sites From: Ignatius Teo (iteo <email protected>)
Date: 11/02/00

Steven,

You should really make declaration changes in your local.inc like so:

class My_nonCachedSession extends Session {
  var $allowcache = "no";
}

... for the simple reason, if you have to upgrade PHPLIB...

Ignatius

> -----Original Message-----
> From: Steven Reed [mailto:steven <email protected>]
> Sent: Friday, 3 November 2000 04:09
> To: phplib <email protected>
> Subject: RE: [phplib] Caching of sites
>
>
> I had this problem in PHPlib and fixed it with the by
> changing the following
> settings in session.inc
>
>
> var $allowcache = "private"; ## Set this to 'private' to
> allow private
> ## caching; set
> this to 'public' to
> allow
> ## public caching;
> set this to 'no'
> to
> ## never cache the page.
> var $allowcache_expire = 1; ##1440; ## If you
> allowcache, data
> expires in this
> ## many minutes.
>
>
> To :
>
>
> var $allowcache = "no"; ## Set this to
> 'private' to allow private
> ## caching; set
> this to 'public' to
> allow
> ## public caching;
> set this to 'no'
> to
> ## never cache the page.
> var $allowcache_expire = 0; ##1440; ## If you
> allowcache, data
> expires in this
> ## many minutes.
>
>
> Pretty straight forward once I found the right setting to change.
>
> Steven Reed
> Web Developer
> Domino
> The Digital Agency
> www.domino.com
> Steven <email protected>
>
>
>
>
> > -----Original Message-----
> > From: Don Undeen [mailto:dundee <email protected>]
> > Sent: Thursday, November 02, 2000 4:57 PM
> > To: Steffen Petter
> > Cc: phplib <email protected>
> > Subject: Re: [phplib] Caching of sites
> >
> >
> > hi Steffen,
> > I'm not answering your question, but posting a "yeah, what's
> > up with that?"
> > On a related note, IE and Netscape handle caching differently, so
> > you have to be careful.
> > Sometimes I WANT the page to not be cached. For example, if a
> > page draws from the database, and the database entry changes, IE
> > won't display the change in the page without
> > explicitly setting a "Pragma: no-cache" header or META tag on
> > that page. This was very irritating until I tracked teh problem
> > down. But in other cases, I WANT the cached
> > version of the page to be displayed (like with search results, as
> > Steffen wrote).
> > Basically, the behviour I want is for when I go to a php page, I
> > want the php script to run, and the results to be displayed. If
> > I'm clicking "back" I want the my last submit
> > to be submitted again.
> > While I realize in general this could be a security problem, it's
> > not for this site. I've been developing a workaround for this,
> > but if anyone has insight into setting this up
> > in a general way, I'd welcome the info.
> > Don Undeen
> > dundee <email protected>
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>