10000 [FIX] Realpath improvement in PHP 7.2 by Guikingone · Pull Request #8753 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[FIX] Realpath improvement in PHP 7.2 #8753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ real and absolute file system paths. This increases the performance for
applications like Symfony that open many PHP files, especially on Windows
systems.

By default, PHP sets a ``realpath_cache_size`` of ``16K`` which is too low for
Symfony. Consider updating this value at least to ``4096K``. In addition, cached
paths are only stored for ``120`` seconds by default. Consider updating this
value too using the ``realpath_cache_ttl`` option:
By default, cached paths are only stored for ``120`` seconds by default, consider updating this value using the ``realpath_cache_ttl`` option:

.. code-block:: ini

Expand All @@ -92,6 +89,10 @@ value too using the ``realpath_cache_ttl`` option:

.. index::
single: Performance; Autoloader

.. tip::

  Since PHP 7.2, the default value for ``realpath_cache_size``has been set to 4096K, feel free to delete this trick in your     ``php.ini`` file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space before has missing


Use Composer's Class Map Functionality
--------------------------------------
Expand Down
0