Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created June 14, 2012 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreymcmahon/2929766 to your computer and use it in GitHub Desktop.
Save coreymcmahon/2929766 to your computer and use it in GitHub Desktop.
Adding Caching to Simplex via the HttpKernel component - http://www.symfonycentral.com
<?php
use Symfony\Component\HttpKernel\HttpCache\HttpCache;
use Symfony\Component\HttpKernel\HttpCache\Store;
$framework = new Simplex\Framework($dispatcher, $matcher, $resolver);
$framework = new HttpCache($framework, new Store(__DIR__.'/../cache'));
$framework->handle($request)->send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment