Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

In a shared hosting environment it is normal for the webserver to get a graceful restart whenever a new user is added or an existing user is deleted. There can be other events that trigger a graceful as well. A graceful restart will cause a new apache process to start accepting connections, and the old process will then shut down after the last open connection ends either through completing the transaction or timing out (whichever comes first).

If your data is not written to a more persistent data store it wouldn't surprise me at all for in-memory data to fall out of scope when a restart happens. This typically won't happen during a request, but between requests all bets are off. On a shared host serving possibly hundreds of users' content, restarts can happen fairly regularly. Within a given transaction your data's integrity is pretty reliable. Between transactions I would work pretty hard to assure I'm not relying on in-memory persistence. The best approach really is to use scoping carefully to avoid data being relied upon spanning across multiple requests, and to leverage the persistent storage options provided by the host; usually a database or the filesystem.


Dave


In reply to Re^7: Getting query string with CGI::Fast by davido
in thread Getting query string with CGI::Fast by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-25 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found