Nginx::FastCGI::Cache - Conveniently manage the nginx fastcgi cache
version 0.002
use Nginx::FastCGI::Cache; # args are optional, these are the default values my $nginx_cache = Nginx::FastCGI::Cache->new({ fastcgi_cache_key => [qw/scheme request_method host request_uri/], location => '/var/nginx/cache', levels => [ 1, 2 ], }); # delete all cached files $nginx->purge_cache; # delete the cached file for this url only $nginx->purge_file('http://perltricks.com/');
Deletes the nginx cached file for a particular URL - requires a URL as an argument.
Deletes all nginx cached files in the nginx cache directory.
David Farrell <sillymoos@cpan.org>
This software is copyright (c) 2014 by David Farrell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Nginx::FastCGI::Cache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nginx::FastCGI::Cache
CPAN shell
perl -MCPAN -e shell install Nginx::FastCGI::Cache
For more information on module installation, please visit the detailed CPAN module installation guide.