Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Dancer & Plackup - Redirect not refreshing page data

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


in reply to Dancer & Plackup - Redirect not refreshing page data

I'm not sure, but try to turn off caching in your production config:
# cache route resolution for maximum performance route_cache: 0
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Dancer & Plackup - Redirect not refreshing page data
by jeromek (Novice) on Aug 07, 2014 at 13:55 UTC
    I thought about that but it looked like just route path caching to avoid searching the whole registry, not actual data.
    Anyways, tried it, no luck

      I think I've tracked it down to starman.
      With only 1 worker, all works fine. I guess the second worker picks up the other request but not in the same DB transaction and doesn't see the update.

      The question is now is it an internal starman cachine problem or am I doing something wrong with my database connection ?
      My guess is that it's not only database because the session info is not pickup by the 2nd worker either so starman is doing something wrong, workers are not synchronized.

      Is there any Starman-specific community I could ask ?

        How do you connect to the database? Do you open a new connection for each request?
        لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-19 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found