{"id":20550246,"url":"https://github.com/dnmfarrell/nginx-fastcgi-cache","last_synced_at":"2026-06-06T15:01:30.149Z","repository":{"id":19760472,"uuid":"23018025","full_name":"dnmfarrell/nginx-fastcgi-cache","owner":"dnmfarrell","description":"Perl module to clear nginx's FastCGI cache on demand","archived":false,"fork":false,"pushed_at":"2014-08-16T14:22:23.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-20T01:39:06.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnmfarrell.png","metadata":{"files":{"readme":"README.pod","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-16T12:58:16.000Z","updated_at":"2018-07-31T00:29:43.000Z","dependencies_parsed_at":"2022-08-25T02:01:58.245Z","dependency_job_id":null,"html_url":"https://github.com/dnmfarrell/nginx-fastcgi-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dnmfarrell/nginx-fastcgi-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2Fnginx-fastcgi-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2Fnginx-fastcgi-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2Fnginx-fastcgi-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2Fnginx-fastcgi-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnmfarrell","download_url":"https://codeload.github.com/dnmfarrell/nginx-fastcgi-cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2Fnginx-fastcgi-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33986901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T02:24:05.817Z","updated_at":"2026-06-06T15:01:30.107Z","avatar_url":"https://github.com/dnmfarrell.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=head1 NAME\n\nNginx::FastCGI::Cache - Conveniently manage the nginx fastcgi cache\n\n=head1 VERSION\n\nversion 0.010\n\n=head1 SYNOPSIS\n\n    use Nginx::FastCGI::Cache;\n\n    # location is mandatory, rest are optional, these are the default values\n    my $nginx_cache\n        = Nginx::FastCGI::Cache-\u003enew({\n            fastcgi_cache_key =\u003e [qw/scheme request_method host request_uri/],\n            location          =\u003e '/var/nginx/cache',\n            levels            =\u003e [ 1, 2 ],\n    });\n\n    # delete all cached files\n    $nginx-\u003epurge_cache;\n\n    # delete the cached file for this url only\n    $nginx-\u003epurge_file('http://perltricks.com/');\n\n=head1 METHODS\n\n=head2 new\n\nReturns a new Nginx::FastCGI::Cache object. Location is the only mandatory\nargument, and the directory must exist and be executable (aka readable) by the\nPerl process in order to be valid. The other two arguments accepted are levels\nand fastcgi_cache_key. These default to the standard nginx settings (see the\nL\u003cnginx fastcgi\ndocumentation|http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html\u003e).\n\n=head2 purge_file\n\nDeletes the nginx cached file for a particular URL - requires a URL as an\nargument, and optionally, the HTTP request method:\n\n    $nginx_cache-\u003epurge_file('http://perltricks.com/'); #assumes GET\n    $nginx_cache-\u003epurge_file('http://perltricks.com/', 'POST');\n    $nginx_cache-\u003epurge_file('http://perltricks.com/', 'HEAD');\n\n=head2 purge_cache\n\nDeletes all nginx cached files in the nginx cache directory.\n\n=head1 BUGS / LIMITATIONS\n\n=over 4\n\n=item *\n\nThe fastcgi_cache_key only acccepts: scheme, request_method, host, and\nrequest_uri as keys. This shouldn't be an issue as it's the recommended\nconvention, but let me know if further variables would be useful.\n\n=back\n\n=head1 REPOSITORY\n\nL\u003chttps://github.com/sillymoose/nginx-fast-cgi\u003e\n\n=head1 AUTHOR\n\nDavid Farrell \u003csillymoos@cpan.org\u003e\n\n=head1 COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2014 by David Farrell.\n\nThis is free software; you can redistribute it and/or modify it under the same\nterms as the Perl 5 programming language system itself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Fnginx-fastcgi-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnmfarrell%2Fnginx-fastcgi-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Fnginx-fastcgi-cache/lists"}