# is there any way to get realpath cache hit ratio of php?

- Thread: https://externals.io/message/45266
- Original archive: https://news-web.php.net/php.internals/45266
- Started by Peter Wang on 2009-08-12T02:39:53+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45266 — Peter Wang — 2009-08-12T02:39:53+00:00

URL: https://externals.io/message/45266#45266

hi,

Is there any way to get realpath cache hit ratio of php?


realpath_cache_size integer

Determines the size of the realpath cache to be used by PHP. This
value should be increased on systems where PHP opens many files, to
reflect the quantity of the file operations performed.

realpath_cache_ttl integer

Duration of time (in seconds) for which to cache realpath information
for a given file or directory. For systems with rarely changing files,
consider increasing the value.

---

## #45268 — Stanislav Malyshev — 2009-08-12T15:22:38+00:00

URL: https://externals.io/message/45266#45268 · In reply to: #45266

Hi!

> Is there any way to get realpath cache hit ratio of php?

Unfortunately not, it doesn't have API for statistics or looking into 
the cache. It would be a good idea to add one.

-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com
