I am really new to server development. I have a server (Server version: Apache/2.4.41 (Ubuntu)
) for Django and it's running on apache2. I want to use Memcache for a large queryset. I just wanna use the following Django future:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',
'LOCATION': '127.0.0.1:11211',
}
}
As I understand with the documentations I have to install Memcached, configure, and start at systemctl
. As I mention before I have an apache2 server on systemctl. If I will install Memcached with sudo apt install memcached
, is it going to be a problem?
I am really scaring to install something on the server because we have almost 20 projects running on apache2 and I don't want to ruin it. I try to use apache2 and nginx at the same time in the past and it causes big problems.
Which way should I follow to use memcached?. Do I have to buy a new server?