Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

•Re: "stale data": mysql, ima-dbi, modperl, mason

by merlyn (Sage)
on Dec 26, 2003 at 18:45 UTC ( [id://317110]=note: print w/replies, xml ) Need Help??


in reply to "stale data": mysql, ima-dbi, modperl, mason

My Mason skills are a bit rusty, but I seem to recall that an %init section is exactly what it says: run once. You need to execute the query outside an %init section in the main part of your page generation, otherwise the results are computed once and cached, as %init is meant to do.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


update: Nevermind. I was rusty. I confused %once with %init, and just went off to verify that. So what you describe is a bit spooky, but I have nothing to offer at this point. Good luck.

Now, if anyone has a Template Toolkit question instead... my batting average is a bit better there... {grin}

  • Comment on •Re: "stale data": mysql, ima-dbi, modperl, mason

Replies are listed 'Best First'.
Re^2: "stale data": mysql, ima-dbi, modperl, mason
by monarch (Priest) on Mar 19, 2006 at 07:58 UTC
    Oh my gosh, Randal, I thought it was just me you gave invalid advice to; but clearly you've been doing it for years.

    Your track record of providing plain wrong advice, then telling everyone not to question you because of your Perl history, is exactly why I would never purchase a book that you've written. Moreover, I would highly recommend any newbie to steer well clear of you for fear of almost guaranteed bad advice.

    Randal, please please please work on improving your Perl and general programming skills and stop publishing in the name of making the Perl world a better place. Come back when you've become a better man.

      Your track record of providing plain wrong advice, then telling everyone not to question you because of your Perl history,
      "Objection: assumes facts not in evidence!"

      "Sustained. Mr monarch, please refrain from introducing evidence by presumption. Continue."

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.

      A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://317110]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found