Skip to content

Commit 79ecd22

Browse files
committed
fixed PURGE example for the Symfony2 reverse proxy
1 parent e4e52b1 commit 79ecd22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/cache/http.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,10 +761,10 @@ Here is how you can configure the Symfony2 reverse proxy to support the
761761
// app/AppCache.php
762762
class AppCache extends Cache
763763
{
764-
protected function lookup(Request $request)
764+
protected function invalidate(Request $request)
765765
{
766766
if ('PURGE' !== $request->getMethod()) {
767-
return parent::lookup($request);
767+
return parent::invalidate($request);
768768
}
769769

770770
$response = new Response();

0 commit comments

Comments
 (0)