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

Comments

Popular posts from this blog

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 …

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.

SnagIT Problem Solved! (Hangs for minutes)

Here's the solution to the SnagIT sluggishness (hangs for several minutes)
I would try first turning off the magnifier window under tools > program preferences > program options. Uncheck the box to show magnifier windows. Click apply > ok and then try the capture again.Check your security software and make sure that Snagit is set as a safe application. A security program that consistently scans the process will cause a very slow response like you are seeing.Please also check your printers per this article:Answer Title: Slow SnagIt startupAnswer Link: http://techsmith.custhelp.com/cgi-bin/techsmith.cfg/php/enduser/std_adp.php?p_faqid=742Finally, please review the steps here and try these as well:Answer Title: SnagIt crashes or hangs when launchedAnswer Link: http://techsmith.custhelp.com/cgi-bin/techsmith.cfg/php/enduser/std_adp.php?p_faqid=137Let me know what happens.