[pLog-svn] r3787 - plog/trunk/class/view/admin
Mark Wu
markplace at gmail.com
Mon Jul 24 17:49:02 GMT 2006
Sorry, should be "/admin.php?op=editPosts", not "/summary.php?op=editPosts"
I already turn off admin cache in previous commit maybe one month ago. :)
If you use apache mod_proxy(in 1.3) or mod_cache(in 2.0), then you will meet
this problem ... :)
I have no indea that squid proxy server has this problem or not. Mod_cache
or mod_proxy only allow you to cache URI folder (/, /images, /gallery)...
and can not specific to scripts(/index.php, /admin.php) ... That' why I have
to do this trick.
I just meet this problem in this afternoon ...:(
Mark
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> Sent: Tuesday, July 25, 2006 1:42 AM
> To: plog-svn at devel.lifetype.net
> Subject: RE: [pLog-svn] r3787 - plog/trunk/class/view/admin
>
> Yes, now I see.
>
> But, are you turning off the cache for the right page? Don't
> need to not cache /summary.php?op=editPosts instead of the
> login page? I might be misunderstanding which part is
> actually getting cached.
>
> You just want to make sure to cache things when you can, and
> not turn off too much caching.
>
> The funny thing is, I do all of my web browsing via a proxy
> server, and I haven't ever seen this problem.
>
> On Tue, 25 Jul 2006, Mark Wu wrote:
>
> > You if have proxy server in front of lifetype to cache the page
> > content
> >
> > And you click any admin url like /summary.php?op=editPosts
> , you will
> > get a login page.
> >
> > After, you logined, and you click the
> /summary.php?op=editPosts url ,
> > you will get the login page again ...
> >
> > Becase the proxy server cache this page.
> >
> > So, we better add no-cache header here to avoid this problem.
> >
> > Mark
> >
> >> -----Original Message-----
> >> From: plog-svn-bounces at devel.lifetype.net
> >> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> >> Sent: Tuesday, July 25, 2006 1:04 AM
> >> To: plog-svn at devel.lifetype.net
> >> Subject: Re: [pLog-svn] r3787 - plog/trunk/class/view/admin
> >>
> >> Why is this needed?
> >>
> >> On Mon, 24 Jul 2006, mark at devel.lifetype.net wrote:
> >>
> >>> Author: mark
> >>> Date: 2006-07-24 16:22:14 +0000 (Mon, 24 Jul 2006) New
> >> Revision: 3787
> >>>
> >>> Modified:
> >>> plog/trunk/class/view/admin/adminloginview.class.php
> >>> Log:
> >>> Add no cache header to avoid proxy cache this page.
> >>>
> >>> Modified: plog/trunk/class/view/admin/adminloginview.class.php
> >>>
> ===================================================================
> >>> --- plog/trunk/class/view/admin/adminloginview.class.php
> >> 2006-07-24 11:05:01 UTC (rev 3786)
> >>> +++ plog/trunk/class/view/admin/adminloginview.class.php
> >> 2006-07-24 16:22:14 UTC (rev 3787)
> >>> @@ -25,6 +25,11 @@
> >>> function AdminLoginView()
> >>> {
> >>> $this->View();
> >>> + // Add the non cache headers to avoid proxy
> >> cache this page.
> >>> + $this->addHeaderResponse(
> >> 'Cache-Control: no-cache, must-revalidate' );
> >>> + $this->addHeaderResponse(
> >> 'Last-Modified: ' . gmdate( "D, d M Y H:i:s" ) . ' GMT' );
> >>> + $this->addHeaderResponse( 'Expires: now' );
> >>> + $this->addHeaderResponse( 'Pragma: no-cache' );
> >>> }
> >>>
> >>> /**
> >>>
> >>> _______________________________________________
> >>> pLog-svn mailing list
> >>> pLog-svn at devel.lifetype.net
> >>> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>>
> >>
> >> --
> >> Jon Daley
> >> http://jon.limedaley.com/
> >>
> >> In Carmel, NY, A man can't go outside while wearing a jacket and
> >> pants that do not match.
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
>
> --
> Jon Daley
> http://jon.limedaley.com/
>
> Whenever people agree with me I always feel I must be wrong.
> -- Oscar Wilde
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
More information about the pLog-svn
mailing list