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:
parent
d0545b6bd6
commit
222e09f140
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue