A
A
Alex2014-08-22 17:38:25
symfony
Alex, 2014-08-22 17:38:25

Symfony - execute request once and save it somehow?

Good Friday evening!
There is a question:
When authorizing, I get a list of tags and other little things that do not change for weeks.
Those. I have a renderView with tags, and when visiting any page of the site, the query to the database and the generation of tags is constantly happening. Work in real time.
I would like to somehow generate them once and not touch them anymore.
It is necessary to somehow cache this thing, or somehow else.
Tell me plz.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Solovyov, 2014-08-23
@pavel_salauyou

well, here is the standard, push everything into redis, with a thaumout for example a week.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question