Twig cache forever, how do i do it?
Created 1 year 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  —  1 year ago

Don't play with it!!!

william  —  1 year ago

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

Cache twig for life (probably) in 2017

ryanthompson  —  1 year 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  —  1 year 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.