Forum

Hiawatha CGI cached pages take a long time to finish loading

Jeff
17 February 2014, 20:12
Hi,

I was checking the hiawatha man page and found about the "X-Hiawatha-Cache: seconds" header options which is awesome. So I decided to implement it as a module that extends my CMS built-in cache system. I can control from my CMS which page types are cached so adding hiawatha caching on top of that increases performance greatly since no cgi has to be called after the page has been successfully cached.

The problem now is that when a page is loaded from hiawatha cache the browser keeps trying to load something for like a whole minute or so. I tried using firefox webconsole looking for a culprit but didn't found nothing.

Here is the site i'm trying this hiawatha feature:

http://wxphp.org/

Almost all sections are cached using hiawatha except for http://wxphp.org/applications and http://wxphp.org/blog/user/wxphp which load just fine.

I also tested this feature on another site which I also host on same server:

http://www.jarisflvplayer.org/

but unfortunately I saw the same behavior.

Is there something I may be missing?

Hiawatha version: 9.3.1
Operating System: Debian 7
Hugo Leisink
17 February 2014, 22:13
I'm very busy this week, so I'll take a look at this in the next weekend.
Jeff
17 February 2014, 23:40
I did some raw fetching of the hiawatha output amd I noticed that a Content-Length header wasn't been sent by hiawatha so I manually added on the php code a:

header("Content-Lenght: " . strlen($page_content));

The problem got fixed, but shouldn't hiawatha set the content-length automatically?
Hugo Leisink
18 February 2014, 09:30
In that case, please try this beta release. I've made some changes to the internal cache, so 9.4 might solve your problem.
Jeff
24 February 2014, 07:28
cool , i will try it out con my Development machine. Thanks!
This topic has been closed.