How much data can I push into one craft()->cache key?
Let's say I have a json string that's reaaaallly long.
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.Sign up to join this community
craft()->cache can point to different places, depending on what the cacheMethod config setting is set to.
By default, it's set to
file, which means that your cache will be saved to the file system in the
So you can pretty much save as much there as you have disk space available.
Just keep in mind, if you're saving something that's 500MB worth of text, PHP is roughly going need 500MB worth of extra memory to be able to read and write that data.