<div dir="auto">I just have installed a new PmWiki test site somewhere on my website ;<br>
then have installed and set up fastcache recipe + PmWiki very minimal config (testing with and without "session" line).<br>
As of now it looks like it's working as expected ; which means I have to investigate my own mess.<br>
<br>
I still have a question Petko :<br>
what is the session line – session_name('XXXSESSID'); – in config ? This line is not in sample-config and I don't know what is the benefit of it. According to PmWiki/AuthUser#sessions it's mainly dedicated for users running a PmWiki Farm. Does that mean it is useless for single (or distinct) site installation ?<br>
<br>
Thank you !!</div><div><br>
<br>
Le sam. 17 oct. 2020 à 19:27, Petko Yotov <<a href="mailto:5ko@5ko.fr" target="_blank">5ko@5ko.fr</a>> a écrit :<br>
><br>
> I made a small correction to the $FastCacheValid variable: since PHP 5.3<br>
> cookies are not in the $_REQUEST array by default.<br>
><br>
> I don't have this installed and have no way to test it, please report --<br>
> you'll need to edit a page and save it to clear existing cache.<br>
><br>
> Someone who uses this recipe should take over the maintenance -- the<br>
> original author Eemeli Aro no longer uses PmWiki, and has released all<br>
> his addons as free/libre software allowing modification and<br>
> redistribution.<br>
><br>
> For example, PmWiki may issue a session cookie even to people who don't<br>
> have any permissions and are logged out. In this case, apparently the<br>
> cache will be invalidated, that is, not saved. Someone who needs this<br>
> recipe and uses it should take a look at the logic.<br>
><br>
> FYI, on your website there is no session cookie when the visitor is<br>
> logged out, so you should be mostly safe.<br>
><br>
> Petko<br>
><br>
> On 17/10/2020 16:41, ABClf wrote:<br>
> > Hello hello,<br>
> ><br>
> > It looks like I'm having a test page where condition<br>
> > (:if auth admin:)test(:if:)<br>
> >  is written (i'm logged as admin of course) ; then saved using<br>
> > fastcache recipe on page1 (same code saved on page2 with fastcache<br>
> > recipe disabled).<br>
> ><br>
> > With fastcache :<br>
> > 1/ Logging out with action=logout<br>
> > 2/ If browsing the page with ?action browse, "test" is not printed (as<br>
> > expected)<br>
> > 3/ If browsing with no action, "test" is printed (unexpected).<br>
> > (I believe case 2 is because of the action query string ?xxxx, which<br>
> > tells fastcache not to run).<br>
> ><br>
> > Without fastcache :<br>
> > 1/ Logging out with action=logout<br>
> > 2/ If browsing the page with ?action browse, "test" is not printed (as<br>
> > expected)<br>
> > 3/ If browsing with no action, test is not printed (expected).<br>
> ><br>
> > I have read doc, talk and pits and it looks like there might be an<br>
> > issue with session, when using fastcache.<br>
> > My config has only one line related to session, at the very top of my<br>
> > config (just below <!php if (!defined('PmWiki')) :<br>
> > session_name('ABCLFSESSID');<br>
> ><br>
> > Does anyone have any idea for getting things to work as expected ? I'm<br>
> > a bit annoyed as I strongly rely on fastcache for speeding page<br>
> > processing time and I would like to be able to use conditional (i.e.<br>
> > ask fastcache to save the reader view page, rather than my admin view<br>
> > page).<br>
> ><br>
</div>