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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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.
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
filecache × 10cache × 6
plugin-development × 1
templating × 1
assets × 1
server × 1
yii × 1
cookies × 1
hosting × 1
imagick × 1
storage × 1
load-balancer × 1