1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Cached Perl Modules cause big trouble

Discussion in 'Plesk for Linux - 8.x and Older' started by netdiver, Jan 11, 2006.

  1. netdiver

    netdiver New Pleskian

    Jan 3, 2006
    Likes Received:
    Hi folks.

    Currently a very strange thing happens on my system. (Suse9.3/Plesk7.5.4/Apache2)

    I have some self written Perl modules installed in the /usr/lib/perl5/5.8.6/MyMods and when I use some functions from these modules I encounter cached values in some variables as well as chached module versions.

    Example: I use a script with at least two URL parameters (via GET) and I resolve them in my script via the CGI module.
    After refreshing the page a couple of times I delete one of the parameters and refresh the page in my browser. sporadically I still receive my old values.

    Example 2:
    In my modules I have a function bla( ); that does nothing but printing out some values. If I add a line for example printing out "hello world" Ireceive after refreshing my browser "hello world". When I erase this "hello world" line in my module and I press refresh .. I still get "Hellor world".
    After approx 30-40 seconds I receive the updated values .. and sporadically the old ones. Using a fresh Browser window doesnt help. After approx 2-3 min I always receive the actual printout.

    Btw. this is not a browser issue. I tried all settings and different browsers as well. Oh .. and I display a timecode.

    I'm a bit confused and currently I have no clue where I could fix this problem.
    Somehow it seems that the per modules are cached.

    Ok, thanks for dealing with my problems.
    I hope anyone has a solution .. or at least a hint.

    All the best,