2

How much data can I push into one craft()->cache key?

Let's say I have a json string that's reaaaallly long.

2

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 craft/runtime/storage/cache folder.

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.

| improve this answer | |
  • Thank you Brad. Then I know what's going on. I thought it was stored in the DB - that's why I asked :) – naboovalley Oct 15 '14 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.