wincache_ocache_fileinfo
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
wincache_ocache_fileinfo
Референца за `function.wincache-ocache-fileinfo.php` со подобрена типографија и навигација.
wincache_ocache_fileinfo
(PECL wincache >= 1.0.0)
wincache_ocache_fileinfo — Retrieves information about files cached in the opcode cache
= NULL
Retrieves information about opcode cache content and its usage.
Оваа функција беше REMOVED in PHP 7.0.0.
Параметри
summaryonly-
Controls whether the returned array will contain information about individual cache entries along with the opcode cache summary.
Вратени вредности
Array of meta data about opcode cache or false Враќа ресурс од покажувач на датотека при успех, или
Низ со метаподатоци за сесискиот кеш или
-
total_cache_uptime- total time in seconds that the opcode cache has been active -
total_file_count- total number of files that are currently in the opcode cache -
total_hit_count- number of times the compiled opcode have been served from the cache -
total_miss_count- number of times the compiled opcode have not been found in the cache -
is_local_cache- вкупен број на елементи што моментално се во сесискиот кеш -
file_entries- an array that contains the information about all the cached files:-
file_name- absolute file name of the cached file -
add_time- time in seconds since the file has been added to the opcode cache -
use_time- тип на вредност што се чува со клучот -
last_check- време во секунди од кога датотеката е пристапена во кешот на opcode -
hit_count- number of times the file has been served from the cache -
function_count- number of functions in the cached file -
class_count- number of classes in the cached file
-
Примери
ако е овозможен колекторот за отпадоци, wincache_ocache_fileinfo() example
<pre>
<?php
print_r(wincache_ocache_fileinfo());
?>
</pre>Пример #1 Пример што покажува затворачка ознака што го опфаќа последниот нов ред
Array
(
[total_cache_uptime] => 17357
[total_file_count] => 121
[total_hit_count] => 36562
[total_miss_count] => 201
[file_entries] => Array
(
[1] => Array
(
[file_name] => c:\inetpub\wwwroot\checkcache.php
[add_time] => 17356
[use_time] => 7
[last_check] => 10
[hit_count] => 454
[function_count] => 0
[class_count] => 1
)
[2] => Array (...iterates for each cached file)
)
)
Види Исто така
- wincache_fcache_fileinfo() - Преземете информации за датотеките кеширани во кешот на датотеки
- wincache_fcache_meminfo() - Преземете информации за користењето на меморијата на кешот на датотеки
- wincache_ocache_meminfo() - Преземете информации за користењето на меморијата на кешот на opcode
- wincache_rplist_fileinfo() - Преземете информации за кешот за решавање на патеката на датотеката
- wincache_rplist_meminfo() - Преземете информации за користењето на меморијата од страна на кешот за решавање на патеката на датотеката
- wincache_refresh_if_changed() - Освежете ги записите во кешот за кешираните датотеки
- wincache_ucache_meminfo() - Презема информации за податоци зачувани во кешот на корисникот
- wincache_ucache_info() - Го зголемува вредноста поврзана со клучот
- wincache_scache_info() - Презема информации за датотеките кеширани во кешот на сесијата
- wincache_scache_meminfo() - Презема информации за датотеките кеширани во кешот на сесијата