mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
update caching section of performance doc
This commit is contained in:
parent
5a117faf3c
commit
1d5acfcd7f
@ -61,8 +61,11 @@ performance. To do so, add the following to ``/etc/fstab``::
|
||||
Caching
|
||||
=======
|
||||
|
||||
Install the APC or Opcache bytecode cache. This example is for
|
||||
CentOS/Red Hat/Fedora running PHP 5.4:
|
||||
Caching improves performance by storing data, code, and other objects in
|
||||
memory.
|
||||
|
||||
The APC or OPCache bytecode cache are commonly used in PHP environments. This
|
||||
example installs APC on CentOS/Red Hat/Fedora systems running PHP 5.4:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
@ -74,24 +77,22 @@ On Ubuntu systems running PHP 5.4 this command installs APC:
|
||||
|
||||
$ sudo apt-get install php-apc
|
||||
|
||||
PHP 5.5 replaces APC with Opcache. Opcache is bundled with PHP 5.5 so it should
|
||||
not be necessary to install it separately.
|
||||
PHP 5.5 replaces APC with OPCache. OPCache is bundled with PHP 5.5 so it should
|
||||
not be necessary to install it separately. OPCache improves PHP performance by
|
||||
storing precompiled script bytecode in shared memory, thereby removing the need
|
||||
for PHP to load and parse scripts on each request. This extension is bundled
|
||||
with PHP 5.5.0 and later, and is available in PECL for PHP versions 5.2, 5.3,
|
||||
and 5.4.
|
||||
|
||||
APC is both an opcode cache and data store. OPcache is only an opcode cache, so
|
||||
for caching user data you should install APCu.
|
||||
APC is both an opcode cache and data store. OPCache is only an opcode cache, so
|
||||
for caching user data you should also install APCu.
|
||||
|
||||
The Redis key-value cache and store is an excellent fast and robust cache. For
|
||||
configuration examples see :doc:`config_sample_php_parameters`.
|
||||
|
||||
Distributed PHP environments should use Memcached. Memcached servers must be
|
||||
specified in the ``memcached_servers`` array in ownCloud's config file
|
||||
``config.php``. For examples see :doc:`config_sample_php_parameters`
|
||||
|
||||
OPcache Extension
|
||||
-----------------
|
||||
|
||||
OPcache improves PHP performance by storing precompiled script bytecode in
|
||||
shared memory, thereby removing the need for PHP to load and parse scripts on
|
||||
each request. This extension is bundled with PHP 5.5.0 and later, and is
|
||||
available in PECL for PHP versions 5.2, 5.3, and 5.4.
|
||||
|
||||
``config.php``. For examples see :doc:`config_sample_php_parameters`.
|
||||
|
||||
Tuning System Parameters
|
||||
========================
|
||||
|
||||
Loading…
Reference in New Issue
Block a user