I'm trying to understand how caching actually works and which caching system should I use, but the more I read the more confused I am.
Using default cache in my magento store (1.9.2) doesn't realy work. After a few weeks my cache folders are more than 10gb and becouse of that website started to work very slow. I have to clear cache folders every few days or so to make it work reasonably.
My hosting provider allows me to change caching to APC or XCache. I can also buy memcached (64mb), but I'm not sure if it will work becouse its size?
Could someone explain to me what those cache systems actually do, and which one of them should I use to make my magento work fast? Or maybe combining two of them is a way to go?
EDIT: How often should I clean cache catalogs via cronjob? What's the point of using second-level cache ( /var/cache/ folder ) if I'm going to clear it quite often to prevent slow working (what's the point of caching at all if it makes my website slow)