May 10, 2016
0
Level 7
Laravel Caching - File vs Database?
What is better for caching? File or database? Caching in database seems to do a query to get the database from database everytime it is requested which may slow down the site.
Caching in file does not seem to do that. I don't want to use redis but I have never used memcached so I don't know how that works.
Really, I don't think memcached would work for other people in shared hosting.
So yeah, what is better? Caching via file or db?
Please or to participate in this conversation.