[EMAIL PROTECTED] wrote:
Hi Josh ,
1) Using the Use Strict Config . I was still having the problem intermitently with the error
Can't locate object method "new" via package "GD::Graph::bars" at lisa2.asp line 96. , /Net/stmdvocs/sbcexp/devl/SunOS/sparc-5.6/run/pd/cpan/5.6.1-eval/lib/Apache/ASP.pm line 1556
Doing refresh sometimes makes it work with no changes but graph comes inconsistently. My Statedir was same as where the .png file was generating and seems to be the problem though could not find what exactly is the problem but seems to be alteast erroring out when li directory is present .
I moved the Statedir and it seems to have resolved the problem , would there be any conflict when these temp directories are being generated.
I would make sure when you get sticky errors like this to stop/start apache as well, else things can persist oddly after the initial error.
Try loading GD::Graph::bars in global.asa, or httpd.conf to. In httpd.conf, you would use PerlModule.
2) Iam using XML as base data and generating different types of display eg HTML & Graph . When generating HTML my transformation is very slow and it also times out when i try to get large output . Can i dynamically assign some cache or any setting i need to set this to make it fast and work for large queries (my htacess is attached).
Yes. Check out http://www.apache-asp.org/objects.html#%24Response-%3EIa3beea1e to see how to use $Response->Include({ Cache => 1, ... }) to cache the output of an include. You then need to decompose your expensive code into the include to be called. Note that a $Response->Include() can also have its return values cached in this way. Regards, Josh ________________________________________________________________ Josh Chamas, Founder phone:925-552-0128 Chamas Enterprises Inc. http://www.chamas.com NodeWorks Link Checking http://www.nodeworks.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
