Merge pull request #1621 from owncloud/carlaschroder-patch-1

restore caching section
This commit is contained in:
Carla Schroder
2015-08-31 04:47:17 +02:00

View File

@@ -57,6 +57,40 @@ Enable JavaScript and CSS Asset Management
See :doc:`js_css_asset_management_configuration` for a description and the
benefits.
.. _caching:
*******
Caching
*******
Make sure the APC or Opcache bytecode cache is installed. This example is for
CentOS/Red Hat/Fedora running PHP 5.4:
.. code-block:: console
$ sudo yum install php-pecl-apc
On Ubuntu systems running PHP 5.4 this command installs APC:
.. code-block:: console
$ 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. 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 also install APCu.
You can test the state of APC(u) by putting the testing file from the documentation
in your server root. It is usually called 'apc.php' and can be found in
/usr/share/doc/php5-apcu/apc.php or /usr/share/doc/packages/php5-apcu/apc.php or
a similar location, depending on your distribution.
**************
Webserver Tips