Boost Nextcloud Performance with Redis Cache on OpenBSD
Table of Contents
Introduction
A PHP memory caching utility such as Redis can significantly decrease load times, speeding up PHP requests by storing compiled files for quicker retrieval.
Install Redis
Both the Redis database and PHP interfacing extension need to be installed:
# pkg_add redis pecl-redis
Add to rc.d to run at startup and then start Redis:
# rcctl enable redis
# rcctl start redis
Redis and Nextcloud Configuration
First, make the directory with appropriate ownership and permissions in the chroot where Redis will create the unix socket file:
# mkdir /var/www/redis
# chown …