WebsiteBaker Support (2.8.x) > Templates, Menus & Design
REVAMDS Page Cache for WebsiteBaker
Ruud:
The standard form module ads some variables (even without the captcha enabled) to see if the post data was originally created by the formpage. The captcha does the same thing.
These variables are stored in session variables, and will not match (or even exist) if the form is cached.
So for these pages it will be necessary to add the pageid's in the script to "not cache" that page.
You could try a lot more by analizing the html (like any <form> tag in the page should not cache).
It will probably never be fail safe ;)
Attached is my current playground version.
I added a small thingy to differentiate loggedin users and anonymous visitors, and made some more minor changes..
Also the stop.php is much simpler (no more ob_* () functions).
Edit: removed download
Ruud:
--- Quote from: Ruud on April 08, 2015, 02:04:17 PM ---You could try a lot more by analizing the html (like any <form> tag in the page should not cache).
--- End quote ---
This was easy to implement ;)
The current attached version will not cache any page that looks like a form.
Tez Oner:
Hey Ruud,
--- Code: ---This was easy to implement Wink
The current attached version will not cache any page that looks like a form.
--- End code ---
Thanks for the adds, gonna have a look at it later, but looks good :)
Cheerz,
Tez Oner
dbs:
Hi, the message:
Not cached: Generation time: 0.43670988082886 seconds
is a info or a warning?
The page is fast enough and nothing must cached?
But a visitor could think there is a problem or safety-risk. :-)
Ruud:
This is info when you are testing.
--- Code: (start.php) ---<?php
// when set, generation timing will be displayed.
$debug_cache = true;
--- End code ---
Set $debug_cache to false (start.php) to disable this information.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version