diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 22:26:02 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-08-23 16:49:21 +0200 |
commit | 222e09f140099f3b1b8f6db1846d35e6810d43a3 (patch) | |
tree | 0d0c4bb203306a6ca554fe23c679448f3ae1fd2b /src/Wallabag/CoreBundle/Controller | |
parent | d0545b6bd6edc38bf06604900b1e20a60e7c8583 (diff) | |
download | wallabag-222e09f140099f3b1b8f6db1846d35e6810d43a3.tar.gz wallabag-222e09f140099f3b1b8f6db1846d35e6810d43a3.tar.zst wallabag-222e09f140099f3b1b8f6db1846d35e6810d43a3.zip |
Add Cache on Share Action
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index e3b4b1eb..c94b47f0 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -12,6 +12,7 @@ use Wallabag\CoreBundle\Entity\Entry; | |||
12 | use Wallabag\CoreBundle\Form\Type\EntryFilterType; | 12 | use Wallabag\CoreBundle\Form\Type\EntryFilterType; |
13 | use Wallabag\CoreBundle\Form\Type\EditEntryType; | 13 | use Wallabag\CoreBundle\Form\Type\EditEntryType; |
14 | use Wallabag\CoreBundle\Form\Type\NewEntryType; | 14 | use Wallabag\CoreBundle\Form\Type\NewEntryType; |
15 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache; | ||
15 | 16 | ||
16 | class EntryController extends Controller | 17 | class EntryController extends Controller |
17 | { | 18 | { |
@@ -459,6 +460,7 @@ class EntryController extends Controller | |||
459 | * @param Entry $entry | 460 | * @param Entry $entry |
460 | * | 461 | * |
461 | * @Route("/share/{uuid}", requirements={"uuid" = ".+"}, name="share") | 462 | * @Route("/share/{uuid}", requirements={"uuid" = ".+"}, name="share") |
463 | * @Cache(maxage="25200", public=true) | ||
462 | * | 464 | * |
463 | * @return \Symfony\Component\HttpFoundation\Response | 465 | * @return \Symfony\Component\HttpFoundation\Response |
464 | */ | 466 | */ |