mirror of
https://github.com/AlexBocken/mykb.git
synced 2024-11-21 18:59:37 +01:00
nextcloud: cleanup
This commit is contained in:
parent
d95fd3186e
commit
5e111ba430
@ -213,6 +213,7 @@ systemctl enable --now nextcloud-cron.timer
|
|||||||
|
|
||||||
### Performance Improvements by in-memory caching
|
### Performance Improvements by in-memory caching
|
||||||
Nextcloud's documentation recommends to apply some kind of in-memory object cache to significantly improve performance.
|
Nextcloud's documentation recommends to apply some kind of in-memory object cache to significantly improve performance.
|
||||||
|
You are able to use both APCu and Redis simultaneously for caching. The combination should be faster than either one alone.
|
||||||
|
|
||||||
#### APCu
|
#### APCu
|
||||||
Install `php-legacy-apcu`:
|
Install `php-legacy-apcu`:
|
||||||
@ -251,9 +252,7 @@ A second application server retart is required and everything should be working.
|
|||||||
```sh
|
```sh
|
||||||
systemctl restart php-fpm-legacy
|
systemctl restart php-fpm-legacy
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Redis
|
#### Redis
|
||||||
You are able to use both APCu and Redis simultaneously for caching. The combination should be faster than either one alone.
|
|
||||||
|
|
||||||
Install redis and the php-legacy extensions:
|
Install redis and the php-legacy extensions:
|
||||||
```sh
|
```sh
|
||||||
@ -288,7 +287,6 @@ redis-cli -s /run/redis/redis.sock ping
|
|||||||
(You should get a `PONG` response)
|
(You should get a `PONG` response)
|
||||||
|
|
||||||
If everything works fine on the redis side, we can now configure php to use it.
|
If everything works fine on the redis side, we can now configure php to use it.
|
||||||
```
|
|
||||||
|
|
||||||
In `/etc/php-legacy/conf.d/redis.ini` uncomment the following:
|
In `/etc/php-legacy/conf.d/redis.ini` uncomment the following:
|
||||||
```ini
|
```ini
|
||||||
@ -296,6 +294,7 @@ extension=redis
|
|||||||
```
|
```
|
||||||
and analogously in `/etc/php-legacy/php-fpm.d/igbinary.ini`:
|
and analogously in `/etc/php-legacy/php-fpm.d/igbinary.ini`:
|
||||||
```ini
|
```ini
|
||||||
|
[igbinary]
|
||||||
extension=igbinary.so
|
extension=igbinary.so
|
||||||
|
|
||||||
igbinary.compact_strings=On
|
igbinary.compact_strings=On
|
||||||
|
Loading…
Reference in New Issue
Block a user