PHP.mk документација

realpath_cache_size

Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.

function.realpath-cache-size.php PHP.net прокси Преводот се освежува
Оригинал на PHP.net
Патека function.realpath-cache-size.php Локална патека за оваа страница.
Извор php.net/manual/en Оригиналниот HTML се реупотребува и локално се стилизира.
Режим Прокси + превод во позадина Кодовите, табелите и белешките остануваат читливи во истиот тек.
realpath_cache_size

Референца за `function.realpath-cache-size.php` со подобрена типографија и навигација.

function.realpath-cache-size.php

realpath_cache_size

(PHP 5 >= 5.3.2, PHP 7, PHP 8)

realpath_cache_size(PHP 5 >= 5.3.2, PHP 7, PHP 8)

= NULL

realpath_cache_size(): int

Get realpath cache size

Параметри

Оваа функција нема параметри.

Вратени вредности

Get the amount of memory used by the realpath cache.

Примери

Пример #1 realpath_cache_size() example

<?php
var_dump
(realpath_cache_size());
?>

Горниот пример ќе прикаже нешто слично на:

int(412)

Види Исто така

Белешки од корисници 3 белешки

configuration option
пред 15 години
"realpath_cache_size" is used by PHP to cache the real file system paths of filenames referenced instead of looking them up each time.  Every time you perform any of the various file functions or include/require a file and use a relative path, PHP has to look up where that file really exists. PHP caches those values so it doesn’t have to search the current working directory and include_path for the file you are working on.
If your website uses lots of relative path files, think about increasing this value.  What value is required can be better estimated after monitoring by how fast the cache fills using realpath_cache_size() after restarting. Its contents can be viewed using realpath_cache_get().
Stephen Pritchard from Arcanavision
пред 15 години
Note that the realpath cache is not used if either safe_mode is on or an open_basedir restriction is in effect.
This is having a huge performance effect, causing lots of calls to lstat.

A bugreport has already been filed at http://bugs.php.net/bug.php?id=52312
Анонимен
пред 11 години
Realpath_cache_size default parameter settings are too low (16k).
In the windows and Polish language assessed following be at least a 32k or 64k.
otherwise appache sometimes locks up (especially when using IE).
На оваа страница

Автоматски outline од активната документација.

Насловите ќе се појават тука по вчитување.

Попрегледно читање

Примерите, changelog табелите и user notes се визуелно издвоени за да не се губат во долгата содржина.

Брз совет Користи го outline-от Скокни директно на главните секции од активната страница.
Извор Оригиналниот линк останува достапен Кога ти треба целосен upstream context, отвори го PHP.net во нов tab.