Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    CGI::Buffer 0.37

    Download button

    No screenshots available
    Downloads: 146  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Nigel Horne | More programs
    GPL / FREE
    April 13th, 2012, 03:51 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    CGI::Buffer description

    Optimize the output of a CGI Program

    CGI::Buffer is a Perl module to optimize the output of a CGI program.

    SYNOPSIS

    CGI::Buffer speeds the output of CGI programs by compressing output and by nearly seemlessley making use of client and server caches.

    To make use of client caches, that is to say to reduce needless calls to your server asking for the same data, all you need to do is to include the package, and it does the rest.

     use CGI::Buffer;

     ...


    To also make use of server caches, that is to say to save regenerating output when different clients ask you for the same data, you will need to create a cache. But that's simple:

     use CGI::Buffer;
     use CHI;

     # Put this at the top before you output anything
     CGI::Buffer::set_options(
     cache => CHI->new(driver => 'File')
     );
     if(CGI::Buffer::is_cached()) {
     exit;
     }

     ...



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    CGI program | output optimizer | Perl module | Perl | CGI | output



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM