CGI::MakeItStatic

CGI::MakeItStatic - not cache, to make cgi static.
Download

CGI::MakeItStatic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ktat
  • Publisher web site:
  • http://search.cpan.org/~ktat/CGI-MakeItStatic-0.03/lib/CGI/MakeItStatic.pm

CGI::MakeItStatic Tags


CGI::MakeItStatic Description

CGI::MakeItStatic - not cache, to make cgi static. CGI::MakeItStatic - not cache, to make cgi static.SYNOPSIS ### simple usage use CGI::MakeItStatic; my $q = new CGI; my $check = CGI::MakeItStatic->check($q, {dir => '/var/www/static'}) or exit; # do something ... ### advanced usage use CGI::MakeItStatic; my $q = new CGI; my $check = CGI::MakeItStatic->check ( $q, { dir => "/tmp/CGI-MakeItStatic", keys => , # code to define static name name => sub { my($q) = @_; my($m, $y) = (localtime); $y += 1900; $m++; return sprintf("month_ago=dd", ($m -= $q->param('month_ago')) 2, won't recreate forbidrenew => sub { my($q) = @_; return ($q->param('month_ago') > 2) or $q->param('month_ago') < 0; }, # if month_ago > 10, not do special thing forbid => sub { my($q) = @_; return $q->param('month_ago') > 10 or $q->param('month_ago') < 0; } } ) or exit; # do something ...Requirements:· Perl Requirements: · Perl


CGI::MakeItStatic Related Software