What is the best performance cache for a VPS hosting?

Dopani

Well-known member
Registered
Joined
Mar 11, 2014
Messages
233
Points
18
I am looking for a solution to improve performance on my VPS by isntall some caching addons for my vps. I searched on google and found some like Varnish, Memcached / Memcached with PHP and Squid but I could not clarify which is the best and how to install all of them on a VPS or just one. Can you guys share your suggestions?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Hello,

Redis is currently the best for caching php code, but there are two category of cache. You can cache files to store them in memory or you can cache php code to make less queries to your database.
What do you want to run with a cache system ?

PS : I'm currently writing a thread on redis
 

Dopani

Well-known member
Registered
Joined
Mar 11, 2014
Messages
233
Points
18
Dopani
I would like to know all the ways that you can share me, in my personal opinion, it is better to store files and queries into RAM which reduces queries on MySQL server and speed up php codes.

I have searched and read tutorials about installing memcached on the fourm but not ever used Redis or install memcached for php. If it is easy to install and configure then I want to give it ago.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Caching php code is the most important because it doesn't require a lot of ram even with big database, as it's only code and queries. And because mysql it's one of the first component to use CPU and disk access. For files it should not be needed if you use nginx as it can handle thousands of queries/s and use only few mb of RAM.

So you should definitely try redis. I will post my thread about it in the next 6 hours.
 

Mujkanovic

Well-known member
Collaborate
Registered
Joined
Apr 24, 2016
Messages
424
Points
18
I am looking for a solution to improve performance on my VPS by isntall some caching addons for my vps. I searched on google and found some like Varnish, Memcached / Memcached with PHP and Squid but I could not clarify which is the best and how to install all of them on a VPS or just one. Can you guys share your suggestions?
If you are looking for ways to install memcache and memcached php for your VPS

I found an useful thread on this forum https://forumweb.hosting/13005-instructions-to-install-memcached-on-centos.html

It could help you

Caching php code is the most important because it doesn't require a lot of ram even with big database, as it's only code and queries. And because mysql it's one of the first component to use CPU and disk access. For files it should not be needed if you use nginx as it can handle thousands of queries/s and use only few mb of RAM.

So you should definitely try redis. I will post my thread about it in the next 6 hours.
Never heard about redis :)

But if it is good, I may give it a try.
 
Recommended Threads
Replies
1
Views
3,020
Replies
3
Views
3,344
Replies
2
Views
1,855
Replies
11
Views
4,956

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top