Cfilecache Vs Cdbcache

I’m with this question since I’ve been using CFileCache without problems, but I wonder how the performance of CFileCache can be compared to the performance of CDbCache. What are some use cases where I should prefer the last one (CDbCache)?

Thanks in advance

CdbCache causes more db queries to run on single request, so the dbms is more stressed, but if you want distributed cache for grid of servers - CFileCache will not do for sure and CDbCache is possible way to go (there are of course others like memcached).

it is pretty same as with CDbHttpSession - it is overhead to dbms but in distributed environment - you need common storage and files are stored only on one server machine.