1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-17 17:08:37 +00:00

Add Cache on Share Action

This commit is contained in:
Nicolas Lœuillet 2016-04-13 22:26:02 +02:00
parent d0545b6bd6
commit 222e09f140
2 changed files with 3 additions and 3 deletions

View file

@ -12,6 +12,7 @@ use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Form\Type\EntryFilterType;
use Wallabag\CoreBundle\Form\Type\EditEntryType;
use Wallabag\CoreBundle\Form\Type\NewEntryType;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
class EntryController extends Controller
{
@ -459,6 +460,7 @@ class EntryController extends Controller
* @param Entry $entry
*
* @Route("/share/{uuid}", requirements={"uuid" = ".+"}, name="share")
* @Cache(maxage="25200", public=true)
*
* @return \Symfony\Component\HttpFoundation\Response
*/