WebsiteBaker Support (2.8.x) > Templates, Menus & Design

REVAMDS Page Cache for WebsiteBaker

<< < (3/5) > >>

Tez Oner:
Hey Ruud,

works fine and code looks clean, but the 'checking' is to tight with this lines
and as I see it it's better to comment em out:


--- Code: ---if(!stripos($output,'<form') === false) $donotCache = true;
if(!stripos($output,'<input') === false) $donotCache = true;
--- End code ---

Got some live-site with a page-rating functionality which is also using a form,
but then none of the pages get cached ;) But noticing the parsing of the pages
is multiplied by 10 is nice to know ;)

Thanks, I'll post an 'official' version later and it's gonna be an feature in the
upcoming REVAMDS (will add some props to it ;)

Cheerz,

Tez Oner

Ruud:

--- Quote from: Tez Oner on April 09, 2015, 01:17:10 AM ---works fine and code looks clean, but the 'checking' is to tight with this lines
and as I see it it's better to comment em out:

--- End quote ---
Ok, also a loginbox or searchbox on all pages would destroy the caching..  8-)
Another way to detect "form" pages would be to scan for the typical:
class="frm-nixhier"  and/or  name="captcha"


--- Code: ---if(!stripos($output,'class="frm-nixhier"') === false) $donotCache = true;
if(!stripos($output,'name="captcha"') === false) $donotCache = true;
--- End code ---

Tez Oner:

--- Code: ---if(!stripos($output,'class="frm-nixhier"') === false) $donotCache = true;
if(!stripos($output,'name="captcha"') === false) $donotCache = true;
--- End code ---
[/quote]

That could be good work-around gonna check it later.

Tez Oner:
Re-uploaded Download File.

johnbroeckaert:
Hi,

I downloaded the file but it seems this file is invalid. Got an error: file not complete.  :-(
Is it an idea to reload the complete files (start/stop.php) and  a brief tutorial in a zip?

Regards,
John

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version