38 votes
Accepted

What are the cache options available to a Craft installation?

There are many different caching levels on a web server, some of them are Craft-specific, and some have nothing to do with Craft, but they often get confused. In addition to that, some of them you ...
user avatar
  • 66.4k
7 votes
Accepted

How is "craft()->fileCache" different from using cookies?

Correct... craft()->fileCache will save to your craft/storage/runtime/cache folder by default, which will have a .bin file that has a hash of the key you provided when calling set() and the ...
user avatar
  • 66.4k
3 votes

Craft hosted on Google App Engine - failing to load Craft classes?

I got the same error and started debugging with XDebug. I've put some hours in this and my conclusion is: You can't run Craft on GAE. It gets worse: You can't even run Yii1 (the framework Craft was ...
user avatar
2 votes
Accepted

How do I delete or remove temporary assets?

From my comment above: I was able to find the files uploaded to the root of my assets path and deleted them there. Then on the control panel settings page: Updated Asset Indexes and Cleared Cache ...
user avatar
2 votes
Accepted

How to limit cache folder size

There's not a native Craft way to do that. You could setup a cron job that hit a plugin's controller and delete items in cache based on size/date created, etc. My guess is you've got a plugin ...
user avatar
  • 66.4k
1 vote

file based cache and runtime files in load-balanced environments

Is a shared cache necessary? In general a shared cache is not necessary because everything that is not in cache gets re-computed anyways. However, I would highly recommend a shared cache to avoid ...
user avatar
  • 728
1 vote

Why is Craft storing so much temporary files inside the server tmp folder?

Imagick uses the /tmp folder by default, but you can change it: https://github.com/ImageMagick/ImageMagick/issues/399#issuecomment-285793433
user avatar
  • 66.4k
1 vote
Accepted

fileCache seems to expire even though I have it set to 0

You should be using craft()->cache with the cacheMethod config setting set to file (which it is by default) instead of craft()->fileCache. The latter is deprecated and won't work in Craft 3. ...
user avatar
  • 66.4k
1 vote
Accepted

Changing cache type

Is it possible at all to do this through Craft? Probably, but it kind of depends on what level of caching we're talking about and your specific use-case. There's an overview of the different caching ...
user avatar
  • 66.4k

Only top scored, non community-wiki answers of a minimum length are eligible