Twig cache forever, how do i do it?
Created 6 years ago by william

If i want to cache forever with twig, how do i do it?

Ps, no Piterden.. i don't want to add 100 years in minutes!

piterden  —  6 years ago

Don't play with it!!!

william  —  6 years ago

I solved it @ryanthompson and @piterden ! This is how we can do it 😄

Cache twig for life (probably) in 2017

ryanthompson  —  6 years ago

Ya I don't have a forever option.. forever is kinda meh if you ask me - it's basically the same as 9999 in my book. Which is what I use rather than another method.

ryanthompson  —  6 years ago

And you can cache for an eternity (which is longer than forever?) by using 99999.. and an eon after that.. you get the gist.