June 2011 Archives

Cacheing Plack Proxy - speed up development

At work we scrape data from a slow government website (it's public data and you are allowed to use it, but they don't have a way to download it!).

We thought if only there was a quick way to cache the results as we develop the code...

A CPAN search later... we want a proxy and something to cache

use Plack::Builder;
use Plack::App::Proxy;
use Plack::Middleware::Cache;

my $app
    = Plack::App…

About Ranguard

user-pic London Perl developer