Turn off .pm files cache

Discussion in 'Installation and "How-To" Questions' started by MaciejRempala, Jul 9, 2013.

  1. MaciejRempala

    MaciejRempala Bit Poster

    Messages:
    3
    Hello,

    How to turn off Perl file contents caching by hspcd server?

    With regards,
    MR
     
  2. vbatraev

    vbatraev Odin Team

    Messages:
    346
    Why do you want to turn it off?

    It's strongly not recommended for production environment because of it will significantly decrease performance.
     
  3. MaciejRempala

    MaciejRempala Bit Poster

    Messages:
    3
    ...turning off .pl cache

    I develop a plugin. I want to play with the code in development environment.
     
  4. vbatraev

    vbatraev Odin Team

    Messages:
    346
    1. cpan Apache::Reload

    2. /etc/hspcd/conf/hspc_perl.conf
    <IfModule mod_perl.c>
    PerlFreshRestart On
    PerlSendHeader On
    AddHandler perl-script .pl
    AddHandler perl-script .app
    + PerlHandler Apache::Registry
    + PerlInitHandler Apache::Reload
    </IfModule>

    3. service hspcd restart
     
  5. MaciejRempala

    MaciejRempala Bit Poster

    Messages:
    3
    Thank you very much!
     

Share This Page