Support the ongoing development of Laravel.io →
Session Cache Database

I'm planning to setup Memcache and APC.

Question 1 , If i use File as default cache, does it cache the sql query?

Question 2 , if i use memcache as default cache , does memcache by default cache all query Or I have to tell it to cache what i want to be cached.

Question 3 , If memcache is the default cache and I would like to use APC, can i just install APC on ubuntu itself?

Question 4 , APC & Varnish has to be with the web server?

Currently I'm planning setup a Web Server with Master Mysql(with SSD) with Memcached(with Slave SQL)- Recommended? APC on each Web Server. If i scale, i will create a 3rd server for Mysql only. Memecahe Alone, Web Server Alone.

Please advice me on this. Thanks in advance!

Last updated 3 years ago.
0
  • Answer 1: This is a bit ambiguous - please specify what you mean and which SQL query under what conditions.
  • Answer 2: You have to tell Laravel which queries to cache regardless of driver.
  • Answer 3: I'm not understanding what you're relating between Memcache and APC here. But installing APC - sure.
  • Answer 4: Not sure what you're asking but you can make another Varnish server and put it in front of your current one.
Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.