mod_perl a reloadovani modulu
Jan Kasprzak
kas na fi.muni.cz
Pondělí Duben 10 15:14:16 MEST 2006
Honza Pazdziora wrote:
: On Mon, Apr 10, 2006 at 02:35:00PM +0200, Jan Kasprzak wrote:
: >
: > Kdyz to testapp.pl parkrat spustim, a pak zmenim cislo ktere vraci
: > test_fun(), tak pri dalsich spustenich ta aplikace vzdy na prvnim
: > radku vraci korektni (aktualni) hodnotu, ale druhy radek nekdy obsahuje
: > starou hodnotu a nekdy novou. Vyzkousel jsem, ze se to deje nejen pro
: > @EXPORT, ale i pro @EXPORT_OK.
: >
: > Napada nekoho, co je spatne? Diky,
:
: man Apache2::Reload rika:
: [...]
: Even though My/Utils.pm was reloaded, ModPerl::Registry's
: cached code won't run 'use My::Utils;' again (since it happens
: only once, i.e. during the compile time). Therefore the script
: doesn't know that the subroutine reference has been changed.
Zajimave, diky. Jeste tam pisou
> The following problem is relevant only to registry han
> dlers that cache the compiled script. For example it con
> cerns "ModPerl::Registry" but not "ModPerl::PerlRun".
coz mozna bude jeste lepsi reseni - pouzit ModPerl::PerlRun, ktery
teda asi necachuje zkompilovany vysledek. Tim bych sice ztratil
par procent CPU time, ale moduly bych mel cachovane i nadale.
-Y.
--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Journal: http://www.fi.muni.cz/~kas/blog/ |
> Specs are a basis for _talking_about_ things. But they are _not_ a basis <
> for implementing software. --Linus Torvalds <
Další informace o konferenci Perl