Skip to main content

mod_perl issues w. HTML::Template in AJAX calls

Having run my Perl/CGI/Apache2 app in CGI mode for a while, I upgraded a development version to mod_perl.

We did notice a remarkable increase in speed with mod_perl, but HTML::Templates got cached and were not getting refreshed with new data. I'm only trying to read manipulate some data on the session and post it in a HTML::Template based table based on an Ajax event. The output HTML is from some previous cache, which is not even consistent between different clicks.

Worse yet, I am not able to clear CGI::Session variables (using $session->clear()).

I'm almost sure there is a correct way of setting up mod_perl to work correctly w. HTML::Templates. If anyone has a good prescription, a reply-post would be appreciated.

The only line of config in my VirtualHost section for getting mod_perl to work was:
PerlResponseHandler ModPerl::Registry
Commenting this switched the app back to CGI

Popular posts from this blog

The Dream of the Information Age

If this beauty of a device meets it's mission of being owned by every kid on the planet, we are looking to a new dimension of the Information Age.
For full profile of the device, visit BBC's technology page.

Paypal's Ridiculous Business Practices

In Q3-2005 we discovered the power of online sales and started to market Wapsol's products extensively online. Just as importantly we decided to get into the trading business for WLAN accessories (antennae, cable, connectors etc) which entails buying from manufacturers and selling on online-retail. Needless to say ebay's 26 worldwide markets were lucrative points of sales.

We used Paypal for collecting most of payments from customers outside Germany. The numbers ticked up fast and we were hecticly building up infrastructure for shipping, online-support, product-portfolio and payment-systems.

One morning as I woke up in Germany I found that Paypal decided to lock up our account without any specific reason. There were no disputes or complaints from buyers or anything that suggested provocation. They just locked it. In it a few thousands of dollars of cash-flow and the account was listed as a favored payment option for some 100 pending auctions - now customers couldn't pay for …

Journey, not a Destination

The 7 Spiritual Laws .. make a connection between personal psychology and spirituality. It's one of those things that we seem to know already deep down, and once someone articulates it in words, it makes an immediate click!

Thanks, Michael George Knight, for introducing this book through your amazing summary at

Here are my notes for self-reference. These laws can be referred throughout the day as life's events unfold.
Pure Potentiality Our essential state is pure consciousness.  It is the field of all possibilities and infinite creativity.  Our physical body, the physical universe – every thing in the material world – comes from the same source: a field of silent, unmoving awareness from which anything is possible.

The same field that nature uses to create and sustain a forest, a galaxy, or a human body can also bring about the fulfilment of our desires.  This field is the source of all power, all intelligence, and infinite organising ability.
When our internal…