Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Maypole::Cache
Flexible caching of Maypole request output

Maypole::Cache - Flexible caching of Maypole request output


NAME

Maypole::Cache - Flexible caching of Maypole request output


SYNOPSIS


  package BeerDB;

  use base 'Apache::MVC';

  use Maypole::Cache;

  BeerDB->config->{cache_options} = {

    class => "Cache::FileCache",

    default_expires_in => 600,

    ...

  };


DESCRIPTION

This module replaces Maypole's main handler in your application with one which uses Cache::Cache to cache request output. By default it uses Cache::SharedMemoryCache although this, and all other Cache::Cache options, can be changed using the cache_options configuration hash.

The module caches all pages, except those which trigger an authentication failure, or which use POST parameters, or when the nocache slot in the request object is set to a true value. A separate cache is maintained for each $r->user. You may want certain of your actions to set nocache if they do anything session-conditional.


SEE ALSO

Maypole, the Cache::Cache manpage


AUTHOR

Simon Cozens, <simon@cpan.org>


COPYRIGHT AND LICENSE

Copyright 2004 by Simon Cozens

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy