|
NAMEGantry::Plugins::PageCache - A plugin for caching application pagesSYNOPSISIn Apache Perl startup or app.cgi or app.server:<Perl> # ... use MyApp qw{ -Engine=CGI -TemplateEngine=TT Cache::FastMap # or Cache::Storable PageCache }; </Perl> DESCRIPTIONThe purpose of the plugin is to store and retrieve cached application pages.Note that you must include PageCache in the list of imported items when you use your base app module. CONFIGURATIONThe following items can be set by configuration. If any of the following match then caching will be enabled.** At least one cache criteria must be set. Cache pages based on a certain action. $self->gantry_pagecache_action( 'do_edit,do_delete,do_view' ); Cache pages based on the mime types. $self->gantry_pagecache_mime_type( 'text/html,text/rss' ); Cache every page that is produced by a controller. $self->gantry_pagecache_location( '/controller1' ); Cache distinct pages produced by a controller. $self->gantry_pagecache_uri( '/controller1/rss' ); METHODS
TODOAdd a caching scheme where you can use an SQL::Abstract like syntax.{ -and => { mime_type = [ 'text/html', 'text/rss', ], location = [ '/controller1', '/controller2', ], }, -or => { mime_type => { '!=', 'img/gif' } } } SEE ALSOGantry AUTHORTim Keefer <tim@timkeefer.com>COPYRIGHT AND LICENSECopyright (C) 2007 Tim KeeferThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
Visit the GSP FreeBSD Man Page Interface. |