On Wed, Mar 19, 2008 at 2:41 PM, John ORourke [EMAIL PROTECTED] wrote:
The only down-side is that (AFAICR) it is creating a new object for each
request
No, it's a class method. No object is created.
PerlResponseHandler $My::Handlers::Persistent-response_handler
PerlFixupHandler
On Wed, Mar 26, 2008 at 9:47 AM, Colin Wetherbee [EMAIL PROTECTED] wrote:
what about...
PerlAccessHandler JetSet::Handler::AccessHandler
sub AccessHandler {
my ($r) = @_;
}
We seem to have solved the problem, but for the sake of conversation...
When I've tried that
On Sat, Mar 29, 2008 at 6:41 AM, André Warnier [EMAIL PROTECTED] wrote:
Just for the rest of us : does anyone care to summarise what works and
works not (inasfar as not necessarily documented and/or intuitive) ?
I think it's pretty well-documented:
On Fri, Mar 28, 2008 at 8:30 AM, Valerio [EMAIL PROTECTED] wrote:
Instead I need a solution that allow adding a vhost to the database
without need of restarting apache.
This is not usually done with mod_perl because there are
lighter-weight solutions available. There's some info on vhosts
On Fri, Mar 28, 2008 at 11:36 AM, Ryan Gies [EMAIL PROTECTED] wrote:
I'm curious, how would this be possible with mod_perl?
I'd probably use mod_vhost_alias and make a mod_perl handler that just
checks whether the current IP or hostname is legit.
- Perrin
On Tue, Mar 25, 2008 at 8:56 PM, Will Fould [EMAIL PROTECTED] wrote:
Can a LocationMatch wildcard trigger on a normal 404 or is there a better
way to do this?
There are many ways. Here are a few:
- A custom ErrorDocument pointing to a URL that your perl code
handles. (The 404 approach you had
On Wed, Mar 19, 2008 at 5:42 PM, Robert Landrum [EMAIL PROTECTED] wrote:
Finally, at 13:20, the session was read again, and what we got was that
original session that we wrote way back at 12:42:28. Sometime between
12:43:21 and 13:20:06, the session we originally wrote got committed to
On Tue, Mar 18, 2008 at 4:56 PM, Robert Landrum [EMAIL PROTECTED] wrote:
What I've discovered, and cannont reproduce outside of apache, is what
appears to be a buffering problem.
Sounds more like a locking problem to me. Apache::Session::Memcached
has no locking, so it's last save wins. That
On Mon, Mar 17, 2008 at 7:06 AM, Beginner [EMAIL PROTECTED] wrote:
I found an
upgraded package for my OS.
Do you mean that the OS auto-upgraded something, or that you upgraded
something manually? What exactly was upgraded?
My startup file has:
use Apache2::RequestRec ();
use
On Mon, Mar 10, 2008 at 11:43 AM, Mark Fuller [EMAIL PROTECTED] wrote:
But that doesn't mean anything belongs in a cookie. It seems to me if
it can't be clear text it shouldn't be in a cookie. At least if it's
clear text I have the opportunity to see what's going on and make a
choice about
On Mon, Mar 10, 2008 at 11:46 AM, Mark Fuller [EMAIL PROTECTED] wrote:
BTW: I didn't understand the part in the Catalyst documentation saying
the benefit of sending the session in the cookie is that you don't
have to access the disk. I assume that's supposed to be a performance
benefit.
On Mon, Mar 10, 2008 at 9:27 AM, Mark Fuller [EMAIL PROTECTED] wrote:
To me, it sounds like the kind of thing that makes people disable
cookies entirely
Have you tried browsing the web without cookies recently? It doesn't
work at all on a large number of popular sites. For better or worse,
On Thu, Feb 28, 2008 at 9:33 AM, Peter Wood [EMAIL PROTECTED] wrote:
I'm running Apache 1.3.28 and mod_perl 1.27. I have quite a few Perl CGI
scripts that run via Apache::PerlRun and product HTML output. I'd like
to be able to modify the HTML output of these scripts after they finish
On Tue, Mar 4, 2008 at 8:09 PM, Will Fould [EMAIL PROTECTED] wrote:
We're buying a handful of new machines and I'm trying to make the best
weighted decision for our budget.
Buy the cheapest CPUs available. You will barely touch them. Spend
the money on more RAM.
- Perrin
On Thu, Feb 28, 2008 at 9:47 PM, Colin Wetherbee [EMAIL PROTECTED] wrote:
I've tried both with the $r that gets passed into handler and the $r
from Apache2::RequestUtil-request.
Both of those should have worked. What happened?
Is there any way around this short of setting +GlobalRequest?
On Fri, Feb 22, 2008 at 8:59 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote:
I've heard from a few reputable sources that Amazon is looking to
drop mod_perl, and push into another technology ( which I've also
head is likely to be Java ).
Amazon uses Mason with FastCGI. They have never used
On Sat, Feb 23, 2008 at 10:08 AM, Tina Müller [EMAIL PROTECTED] wrote:
On Sat, 23 Feb 2008, J. Peng wrote:
modperl is fast, but it consumes too much memory.
so we choose fastcgi written by C++.
actually it consumes less memory than FastCGI if you do it right. If you
load as many modules
On Feb 20, 2008 12:54 PM, Kirk [EMAIL PROTECTED] wrote:
I'm new to mp2 and have a relatively old application that used the mp1
implementation of grabbing get/post params from incoming requests
Use Apache2::Request (in the libapreq2 distribution on CPAN) or CGI.pm.
# assign some value
On Feb 19, 2008 11:04 AM, John Siracusa [EMAIL PROTECTED] wrote:
Anyone have any
opinions or experiences to share?
It's great. Fast svn, easy wiki, easy bug tracking, good mailing list
support, no waiting for project approval. I recommend it.
- Perrin
On Feb 18, 2008 3:07 PM, Yann Kerhervé [EMAIL PROTECTED] wrote:
My users can write templates (kind of...) and specify [% INCLUDE
'my:header.tt' %]
I want my provider to know that 'header.tt' comes from one specific user
and not another (to be able to load the correct one).
I'd probably
On Feb 19, 2008 2:35 PM, Yann Kerhervé [EMAIL PROTECTED] wrote:
Yeah, I thought about that but it looked more complicated with the TT
singleton instance I'm using
It shouldn't be. If you're not sure how to change INCLUDE_PATH on an
existing object, search the mailing list archive.
and less
On Feb 19, 2008 5:02 AM, Mark Knoop [EMAIL PROTECTED] wrote:
I would be interested to know of any flaws in my logic...
This is okay for CGI. It would not be good for any persistent
environment like FastCGI, PerlEx, or mod_perl. It those environments
it will break if your database connection
On Feb 17, 2008 7:04 PM, Yann Kerhervé [EMAIL PROTECTED] wrote:
If this is a bad idea, how could I do it differently (and correctly?)
What are you trying to do that requires access to the context?
- Perrin
___
templates mailing list
On Feb 16, 2008 2:00 PM, Randy Kobes [EMAIL PROTECTED] wrote:
For reasons of compatibility, would
it be better to just supply an Apache::request()
that calls Apache2::compat::request()?
That sounds reasonable. I have a couple of tests for this too,
contributed by Jim Brandt.
- Perrin
On Feb 13, 2008 9:01 PM, David Moreno [EMAIL PROTECTED] wrote:
I'd like to start a little poll about what are people's favorite CGI-App
plugins and why.
CGI::Application::Plugin::ValidateRM is wicked awesome for tying up a
common application pattern into a neat bundle.
- Perrin
#
On Fri, Feb 15, 2008 at 12:16 PM, Raymond Wan [EMAIL PROTECTED] wrote:
I see. So if myOwnFunctions is used by many of my components, there is
no way to have it load once but used by all of the components?
Yes, there is. Read the information in the Mason documentation about
namespaces.
On Thu, Feb 14, 2008 at 10:40 AM, Malcolm
[EMAIL PROTECTED] wrote:
Mason uses it's own namespace for the code it generates from your templates.
So unless you have a use lib...; use myOwnFunctions; in your template, it
won't have your functions in scope.
I don't think that explains why the
On Thu, Feb 14, 2008 at 2:01 AM, titetluc titetluc [EMAIL PROTECTED] wrote:
All of these modules propose an expiration mechanism, but they do not
propose a mechanism to automatically destroy session at expiration (this is
what I call a callback mechanism).
This implies that the session
On Wed, Feb 13, 2008 at 3:08 PM, Petry Roman, IT
[EMAIL PROTECTED] wrote:
Looks ok i think. Apache.pm is loaded.. So why can´t i get it to work.. damn
thing 8-).
This is starting to look like a bug in Apache2::compat to me. I think
request() is defined in the wrong namespace. I'll try to
On Feb 13, 2008 2:03 AM, titetluc titetluc [EMAIL PROTECTED] wrote:
By pooling, I mean the fact that expired sessionS have to be REGULARLY purge
(in opposed to a callback mechanism (IMHO, the best solution ). This
callback would be called on ONE session expiration and would suppress it.
You
On Feb 13, 2008 9:09 AM, Petry Roman, IT [EMAIL PROTECTED] wrote:
Can't locate object method request via package Apache at
/usr/lib/cgi-bin/test1.pl line 4.
If Apache2::compat is loaded, it should create that namespace. Dump
%INC from your script and see if Apache.pm is in it.
- Perrin
On Feb 12, 2008 12:28 PM, Frederic Belleudy [EMAIL PROTECTED] wrote:
select video_id from videos_innodb where state='QUEUE' limit 10 FOR UPDATE;
= it's waiting for the first to session to commit, so I cannot get
other videos with the same state!!
commit;
= I get 10 video_id
On Feb 10, 2008 5:30 PM, Yves Goergen [EMAIL PROTECTED] wrote:
My problem is that the sub-select in line 7 (SELECT 1) takes a rather
long time. (When I remove it, it's much faster.)
This is a known issue with EXISTS/NOT EXISTS subqueries in MySQL,
which has some fixes slated for MySQL 6. In
On Feb 11, 2008 4:46 PM, Yves Goergen [EMAIL PROTECTED] wrote:
Thank you for the link. Is there some way to get only the headlines and
a summary for all entries? Reading through the entire contents by month
and finding the misleading captions is hard work for such masses of
content. The search
On Feb 10, 2008 12:37 PM, Mag Gam [EMAIL PROTECTED] wrote:
I am trying to change DocumentRoot because, currently I am using open() to
load templates for my website. I have header, menu, footer in 3 seperate
files, and I generate content like that. It works fine now, just not too
dynamic when
On Feb 11, 2008 9:44 AM, Dylan Tynan [EMAIL PROTECTED] wrote:
I'm wondering what would happen if I –didn't—have an ithreads-enabled Perl,
but still set up the httpd.conf with the virtual-host/+parent stanzas?
Try it and see. I doubt anyone will know offhand.
I take it the only real way
On Feb 10, 2008 12:14 PM, Mag Gam [EMAIL PROTECTED] wrote:
my Apache2::Request $r = shift;
Tells the Perl compiler to expect an object in the CApache2::Request
class to be assigned to C$r. A patch has already been submitted to
use this information so method calls can be resolved at compile
On Feb 10, 2008 12:24 PM, Mag Gam [EMAIL PROTECTED] wrote:
my $docroot = $r-document_root('/var/www/html/perl');
Why are you trying to change the DocumentRoot?
- Perrin
On Feb 9, 2008 10:31 AM, brett lee [EMAIL PROTECTED] wrote:
My problem is that this works fine for several requests, but then it fails.
And when it fails, ALL four (left,right,top,bottom) of the arrays that have
calls to printAd fail. Never just one, always all four. The rest of the
HTML
This one is Python, but I'm sure you all get the joke:
http://www.codeirony.com/?p=9
- Perrin
___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates
On Feb 6, 2008 10:06 PM, Mag Gam [EMAIL PROTECTED] wrote:
Currently, when I open a file I have to use the
absolute path (/var/www/appname/top.inc). Is it possible for me to use just
'top.inc'?
You can either use DocumentRoot
On Feb 7, 2008 11:09 AM, titetluc titetluc [EMAIL PROTECTED] wrote:
I am using the Apache::Session module to manage ... sessions.
Apache::Session does not manage session expiration
Sure, it's a building block. You build the expiration part on top of
it. Either you use a timestamp column in
On Feb 6, 2008 6:40 AM, Britske [EMAIL PROTECTED] wrote:
SELECT * FROM prices WHERE prices.productid IN (SELECT id FROM priducts
ORDER BY id LIMIT 0, 1000)
However, I'm getting an error-message stating that Limit is not allowed in a
subquery.
How would you approach this?
SELECT *
FROM
On Feb 6, 2008 11:52 AM, brett lee [EMAIL PROTECTED] wrote:
Have tried using CGI::Session (3.95, 4.10, 4.20) but am continually seeing
two issues that appear to still be open issues with the latest (is it the
final?) release.
What issues are you having trouble with? Mark is one of the more
On Feb 6, 2008 3:59 PM, brett lee [EMAIL PROTECTED] wrote:
1. First problem is that refreshing the screen often (not always) results in
a new session being generated:
http://rt.cpan.org/Public/Bug/Display.html?id=17299
With these failures, I can see the browser session in the filesystem, its
I've made some updates to the templating comparison at
http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html.
- Removed outdated Apache::AxKit information and replaced it with a
brief description of AxKit2.
- Improved coverage of Petal and added Template::TAL.
- Fixed typos
On Feb 1, 2008 2:18 PM, David E. Wheeler [EMAIL PROTECTED] wrote:
Perl 5.10.0
That's not working yet. Please use 5.8 for now.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Jan 30, 2008 5:25 PM, Jerry Schwartz [EMAIL PROTECTED] wrote:
The problem starts when I try to fetch the memos. I want one email address,
two or more customer_ids (so I can tell them apart), and all of the memos
for each customer_id (preferably using GROUP_CONCAT(). In other words, this
is
On Jan 31, 2008 1:30 PM, Jerry Schwartz [EMAIL PROTECTED] wrote:
That's rather what I feared. I'm trying to avoid code, mostly because this
should be a one-off run.
If it's a one-shot deal and you don't mind it taking a little time, I
think something like this would work:
SELECT
On Jan 28, 2008 6:19 PM, Carl Brewer [EMAIL PROTECTED] wrote:
I have a client who wants to send email from a flash script (do you call
flash stuff scripts?), and he has asked me to install sendmail.php for
him. I don't want to! Can anyone here recommend a modperl (or just
plain perl)
On Jan 29, 2008 3:39 PM, Mark Knoop [EMAIL PROTECTED] wrote:
One of the
features of my system is that one set of tags gets processed when the site
is built ie the pages are prerendered to an extent. The rest of the tags
then get processed at request time by my CGI script.
The documentation
On Jan 22, 2008 7:18 PM, Mont McAdam [EMAIL PROTECTED] wrote:
In my opinion it should return every record from the table where `method` is
equal to NULL, ZERO or EMPTY STRING, as this table doesn't allow null, and
the field type is varchar, this would be EMPTY STRING's only.
Although it
On Jan 23, 2008 5:57 AM, Alx G [EMAIL PROTECTED] wrote:
# PerlFixupHandler Apache::DB # tried this, just filled up my error log
with very low-level mod_perl calls, page didn't load, nothing in tmon.out
(pages work fine without it)
That's how you run your code in the debugger. You have to
On Jan 21, 2008 7:26 AM, Alx G [EMAIL PROTECTED] wrote:
Thanks for the tips John, however as I mentioned in my previous post, I did
in fact try it with the DB-init call and it made no difference.
It will make a big difference, but it sounds like you have another
problem preventing you from
On Jan 13, 2008 4:19 PM, Colin Wetherbee [EMAIL PROTECTED] wrote:
I thought about the file thing... if the file exists, check its last
modified timestamp; if that timestamp is greater than the stored
timestamp, then update the data from the database. It seems like
unnecessary disk access,
On Jan 11, 2008 7:22 AM, Sebastian Mendel [EMAIL PROTECTED] wrote:
i can only find one source in the manual, where MySQL is using more than on
index:
http://dev.mysql.com/doc/refman/6.0/en/index-merge-optimization.html
Uh, how many sources do you need? It uses multiple indexes, just like
it
On Jan 11, 2008 10:57 PM, Jeff Pang [EMAIL PROTECTED] wrote:
I met a strange requirement that, given Apache has two virtual hosts, vhA and
vhB, vhA's document root is: /path/a/; vhB's document root is: /path/b/.
vhA's programs are running under /path/a/cgi-bin, but actually, the programs
of
On Jan 10, 2008 5:40 PM, Eben [EMAIL PROTECTED] wrote:
I want to be able to do count of the total records brought back by this
query... but since I am using the group by I can't use COUNT() in the
desired way.
Assuming what you want is all the data from your current query plus an
additional
On Jan 10, 2008 4:09 AM, Cina, Pavel (external)
[EMAIL PROTECTED] wrote:
the problem with loading of CGI::Session I have solved by preloading of CGI
module (PerlModule CGI) directly by the start of apache server in http.conf.
Okay, that means you have a permissions problem. When apache starts
On Jan 10, 2008 8:27 AM, Clayton Scott [EMAIL PROTECTED] wrote:
I believe that he's looking for a method of checking his templates for
check for template syntax errors,
essentially the equivalent of perl -c perlfile for perl syntax errors.
I assumed he must already have tried running the
On Jan 10, 2008 10:33 AM, Carl Johnstone [EMAIL PROTECTED] wrote:
Using the debian-stable-provided version of mod_perl, I've got an app that's
working fine however the way it was configured meant we were causing an
early load of perl during the configuration phase of apache.
Just curious --
On Jan 9, 2008 4:33 AM, Sebastian Mendel [EMAIL PROTECTED] wrote:
usually ... but i do not know of any index capable of having FULLTEXT and
'normal' fields in one index
Does that matter? It would have to be doing a full scan for
SQL_CALC_FOUND_ROWS to work out well.
- Perrin
--
MySQL
On Jan 9, 2008 8:34 AM, Sebastian Mendel [EMAIL PROTECTED] wrote:
yes, as written in the mentioned article the test is only relevant with
correct used indexes, but MySQL does not use more than one index, so this
query cannot all be done with indexes
Well, first of all, MySQL 5 does use more
On Jan 9, 2008 2:59 PM, David Martin [EMAIL PROTECTED] wrote:
I have a template with an error in it that I just can't seem to track down.
What's the message you're getting?
I seem to recall from years ago that there is a way to tell the TT compiler
to compile the template file and in that way
On Jan 8, 2008 4:59 AM, Cina, Pavel (external)
[EMAIL PROTECTED] wrote:
I don't think that this is a problem of the path.
That is what your error message is saying. It could be a permissions
problem preventing the path from being read by your apache server.
I have read somewhere in internet
On Jan 8, 2008 10:02 AM, Geoffrey Young [EMAIL PROTECTED] wrote:
for those that don't know, jeff is a great, smart guy, doing great stuff
with parrot and httpd.
Yeah, Jeff is the kind of guy who takes on a project like this because
embedding Perl stored procedures in Oracle was too easy for
On Jan 4, 2008 10:15 AM, Louis-David Mitterrand
[EMAIL PROTECTED] wrote:
for a long running task (video transcoding) would you recommend a
PerlCleanupHandler?
No, I'd recommend a job queue. Write them to a database table and
have a cron job or daemon that watches for them and does the work.
On Jan 5, 2008 12:07 PM, Louis-David Mitterrand
[EMAIL PROTECTED] wrote:
Did you find a way to deactivate KeepAlive on per-request basis?
It's common practice to enable KeepAlive for your proxy server but
disable it for your mod_perl server.
- Perrin
On Jan 5, 2008 12:56 AM, Colin Wetherbee [EMAIL PROTECTED] wrote:
Well, I don't mind editing the headers, but I'd rather use standardized
API calls (i.e. through Apache2::Cookie and friends) so that I don't
have to worry about what's going on under the hood, updating my code for
Apache2
On Jan 4, 2008 5:51 PM, Eben [EMAIL PROTECTED] wrote:
The resultset is paginated on the front end using the
SQL_CALC_FOUND_ROWS functionality...
Usually a bad idea:
http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/
- Perrin
--
MySQL General
On Jan 4, 2008 9:47 PM, Colin Wetherbee [EMAIL PROTECTED] wrote:
From the Apache2::Cookie documentation, bake() adds a Set-Cookie
header to the outgoing headers table. Is there a way to undo this
without manually editing the headers, preferably with Apache2::Cookie
methods?
Why don't you
On Jan 3, 2008 4:23 PM, Tanner Postert [EMAIL PROTECTED] wrote:
When I try to add a force index (PRIMARY) after the media table to try and
make is use PRIMARY, rather than TYPE, the optimizer switches and uses no
key at all.
It usually knows better than you do about indexes.
I've tried to
On Dec 30, 2007 1:50 PM, donr2020 [EMAIL PROTECTED] wrote:
Our search engine does a master query INNER JOINed to a series of COUNT (*)
subqueries that return what the number of results would have been had the
user chosen different filters (or no filter at all). As an example:
Hmm. Why are you
On Dec 31, 2007 3:05 PM, donr2020 [EMAIL PROTECTED] wrote:
Sorry, I didn't type the subqueries quite correctly. They all have the same
WHERE part (in this case, WHERE Col1 = X that essentially joins all the
queries.
It still doesn't make sense to me. Count queries don't return
anything to
On Dec 30, 2007 3:45 PM, Kate Yoak [EMAIL PROTECTED] wrote:
returning 200 as a scalar from a content handler causes Apache to
spit up Internal Server Error html despite a '200 OK' status.
There is no error or warning in the log, nor any other indication of
a problem
This is more of an apache
On Dec 28, 2007 5:53 PM, Hemant Bist [EMAIL PROTECTED] wrote:
What is the correct way to send http status code of 206 from from Modperl
Registry script [In modperl2/apache2]?
Don't use a Registry script. Write a handler instead.
- Perrin
On Dec 28, 2007 4:09 PM, Hendrik Van Belleghem
[EMAIL PROTECTED] wrote:
I'm having some trouble with DBD::mysql under mod_perl2 on Leopard.
The build process when just fine, make test didn't show any errors and
running it in console and as CGI didn't show any errors.
When CGI works, but
On Dec 19, 2007 11:20 PM, amiribarksdale [EMAIL PROTECTED] wrote:
So I have two problems: (1) Is there a way to just start the download after
the script sez OK? I am trying to avoid the user having to click twice or
three times at worst. Well, it would be once for the request, another time
on
On Dec 24, 2007 12:39 PM, Ben Hitz [EMAIL PROTECTED] wrote:
Yeah, well I started with Class::DBI... DBIx::Class allows you to
chain relationships., which I am not sure DB::Rose does.
This is just an API style thing. I don't think there's any real
difference in the queries you can do, just the
On Dec 26, 2007 1:43 PM, Aristotle Pagaltzis [EMAIL PROTECTED] wrote:
But that can certainly be enough to make a qualitative
difference. After all, there's no difference in the computations
you can do with Perl or assembly language, just the way you ask
for them…
Not a very apt analogy, in my
On Dec 22, 2007 4:40 PM, Will Fould [EMAIL PROTECTED] wrote:
Global $r object is not available. Set:\n\tPerlOptions +GlobalRequest\nin
httpd.conf
And did you try what it says, i.e. setting PerlOptions +GlobalRequest?
By the way, if you just call print() normally it should all be grabbed
by
On Dec 22, 2007 5:21 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote:
On Dec 22, 2007, at 4:47 PM, Perrin Harkins wrote:
By the way, if you just call print() normally it should all be grabbed
by mod_perl anyway. Is there some reason you need to call $r-print()
instead?
I thought it only
All tests pass on Fedora 7 with apache 1.3.39 and perl 5.8.8.
- Perrin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Dec 20, 2007 7:53 AM, Cina, Pavel (external)
[EMAIL PROTECTED] wrote:
Error during compilation of /srv/www/htdocs/mason/bad_session.html:
Can't locate CGI/Session.pm in @INC
The error message says it's not in your @INC. Print out your @INC and
see what it is and what adjustments you need
On Dec 20, 2007 2:09 PM, Michael Schout [EMAIL PROTECTED] wrote:
mod_perl 2 unfortunately scrubs %ENV before my cleanup handler
gets called, so $ENV{TEST_MODE} is never set when the cleanup handler
runs.
Have you considered using your own global instead? Or PerlSetVar in httpd.conf?
- Perrin
On Dec 19, 2007 11:30 AM, Emil-Nicolaie Perhinschi [EMAIL PROTECTED] wrote:
Is there anything wrong with using this in autohandler
%once
our ($my_cute_app);
/%once
One reason I don't want to do that is that this Mason server is shared
by several developers and using up pieces of a global
On Dec 17, 2007 1:30 AM, Krystian [EMAIL PROTECTED] wrote:
I'm looking for cache software which I can use in Load Balancing web
servers (especially php sessions).
Remember, memcached is fast but not reliable storage. If losing
sessions would be a problem for your site, you should not store
On Dec 14, 2007 3:04 PM, Steven Saner [EMAIL PROTECTED] wrote:
Don't you have a reference to the MasonX::WebApp object defined as a
global variable, $app or whatever? You could store the data in that
object.
Is there any advantage you know of to using something like
$app-data() over
On Dec 12, 2007 11:35 AM, Paul Seamons [EMAIL PROTECTED] wrote:
Using globals sometimes, sure - but nearly always? Ick.
Well, you have to keep it persistent or the caching won't work.
Only my persistent
TT or TA object in a mod_perl situation has ever been global - I hardly ever
use a
Grab Apache-Scoreboard 0.15 from CPAN.
On Dec 12, 2007 4:53 AM, Jeff Pang [EMAIL PROTECTED] wrote:
I need Apache::Scoreboard for mp1, where to find it? please help.
On Dec 1, 2007 12:40 AM, Scott Gifford [EMAIL PROTECTED] wrote:
Do any of the mod_perl developers have a comment on this? I'm
surprised it's not generating more feedback.
Scott,
It certainly is a bug and no one denies it. So far, no one has had
the combination of free time and knowledge to
On Dec 12, 2007 2:05 PM, Rolf Schaufelberger [EMAIL PROTECTED] wrote:
my $r = $self-{__apache_req__};
Yikes, be careful of storing Apache2::RequestRec objects. Terrible
things will happen if you try to access one from a previous request.
$r-pool-cleanup_register (\cleanup, {name= 'test',
On Dec 11, 2007 11:40 AM, Raymond Wan [EMAIL PROTECTED] wrote:
Also, I didn't know that it wasn't a Mason problem and despite having
worked with Mason for a few months, I still can't explain where modperl2
ends and Mason begins.
Everything about the process model (forking, persistence) and the
On Dec 11, 2007 11:20 AM, Paul Seamons [EMAIL PROTECTED] wrote:
From time to time I see people requesting allowing finding templates relative
to the current template. I just responded to an email this morning with how
to do so in Template::Alloy. I would propose having it as an option in
On Dec 11, 2007 1:18 PM, Paul Seamons [EMAIL PROTECTED] wrote:
If by easy you mean passing the current template object as a weakened
reference to the closure, attempting to find the current path, manipulating
the current path and adding it to INCLUDE_PATH, then you are right - it is
easy.
I
On Dec 7, 2007 5:01 PM, Ronald Dai. [EMAIL PROTECTED] wrote:
Because it is somehting like
eval{ do something; warn warning message} or die dying message;
Neither warning message nor dying message was logged.
That could mean that it crashed before the warning, or it could mean
something
I think you've responded to the wrong thread here...
On Dec 7, 2007 4:49 PM, Ronald Dai. [EMAIL PROTECTED] wrote:
For a
eval{} or die block if the message of die was not logged, I guess the
process got aborted within the eval block
That's a pretty big guess. How do you know it didn't
On Dec 6, 2007 8:36 PM, Silent [EMAIL PROTECTED] wrote:
# my mod_rerite.conf
# section 1
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Firefox [OR]
RewriteCond %{HTTP_USER_AGENT} lwp-request [OR]
RewriteRule ^/mp3/aaa\.mp3$/mp3/aaa.html
# section 2
RewriteCond
On Dec 7, 2007 3:51 PM, Ronald Dai. [EMAIL PROTECTED] wrote:
Could someone help me to explain under what circumstances, the mod_perl or
apache would abort a process within an eval block without letting the code
complete the block?
A segfault or an exit().
Your perl is pretty old, so it's
On Dec 7, 2007 4:45 PM, Ronald Dai. [EMAIL PROTECTED] wrote:
eval could not catch exit() calls but exit() calls within eval actually
won't have the process exit...I just tested it.
You must have tested something else, because exit() does cause a
process to leave an eval block. Maybe you tried
701 - 800 of 4038 matches
Mail list logo