aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-13 22:26:02 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-08-23 16:49:21 +0200
commit222e09f140099f3b1b8f6db1846d35e6810d43a3 (patch)
tree0d0c4bb203306a6ca554fe23c679448f3ae1fd2b /src/Wallabag/CoreBundle/Controller
parentd0545b6bd6edc38bf06604900b1e20a60e7c8583 (diff)
downloadwallabag-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.php2
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;
12use Wallabag\CoreBundle\Form\Type\EntryFilterType; 12use Wallabag\CoreBundle\Form\Type\EntryFilterType;
13use Wallabag\CoreBundle\Form\Type\EditEntryType; 13use Wallabag\CoreBundle\Form\Type\EditEntryType;
14use Wallabag\CoreBundle\Form\Type\NewEntryType; 14use Wallabag\CoreBundle\Form\Type\NewEntryType;
15use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
15 16
16class EntryController extends Controller 17class 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 */