Add static var to define if cache is set forever

I use this on my personal project, hope to help.