A
A
Alexander2014-04-15 13:46:15
symfony
Alexander, 2014-04-15 13:46:15

HTTP caching Symfony2 - how to give fresh data?

Symfony2 uses ESI to cache chunks of code. We can set a max-age for a chunk and it will be cached for a certain amount of time. For example, one hour.
But how to give fresh data if it was updated after 5 minutes? The user will still receive them only after an hour? Is there any solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shagguboy, 2014-04-15
@shagguboy

1) on an event, bang the cache in the storage, so that it gets useful for the update
2) etag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question