Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Dancer & Plackup - Redirect not refreshing page data

by choroba (Cardinal)
on Aug 07, 2014 at 14:16 UTC ( [id://1096635]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Dancer & Plackup - Redirect not refreshing page data
in thread Dancer & Plackup - Redirect not refreshing page data

How do you connect to the database? Do you open a new connection for each request?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^4: Dancer & Plackup - Redirect not refreshing page data

Replies are listed 'Best First'.
Re^5: Dancer & Plackup - Redirect not refreshing page data
by jeromek (Novice) on Aug 07, 2014 at 14:23 UTC
    I use Dancer::Plugin::Database and the update process is:
    database->quick_update(...); database->commit();

    The reason I say it's not only DB is because on another environment, it fails to resolve the session user after submit.
    session('user') which is set by the first thread throws an uninitialized warning value after submitting (supposedly pickup by the 2nd worker).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found