Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wincache_fcache_fileinfo(3) [php man page]

WINCACHE_FCACHE_FILEINFO(3)						 1					       WINCACHE_FCACHE_FILEINFO(3)

wincache_fcache_fileinfo - Retrieves information about files cached in the file cache

SYNOPSIS
array wincache_fcache_fileinfo ([bool $summaryonly = false]) DESCRIPTION
Retrieves information about file cache content and its usage. PARAMETERS
o $summaryonly - Controls whether the returned array will contain information about individual cache entries along with the file cache summary. RETURN VALUES
Array of meta data about file cache or FALSE on failure The array returned by this function contains the following elements: o total_cache_uptime - total time in seconds that the file cache has been active o total_file_count - total number of files that are currently in the file cache o total_hit_count - number of times the files have been served from the file cache o total_miss_count - number of times the files have not been found in the file cache o file_entries - an array that contains the information about all the cached files: o file_name - absolute file name of the cached file o add_time - time in seconds since the file has been added to the file cache o use_time - time in seconds since the file has been accessed in the file cache o last_check - time in seconds since the file has been checked for modifications o hit_count - number of times the file has been served from the cache o file_size - size of the cached file in bytes EXAMPLES
Example #1 A wincache_fcache_fileinfo(3) example <pre> <?php print_r(wincache_fcache_fileinfo()); ?> </pre> The above example will output: Array ( [total_cache_uptime] => 3234 [total_file_count] => 5 [total_hit_count] => 0 [total_miss_count] => 1 [file_entries] => Array ( [1] => Array ( [file_name] => c:inetpubwwwrootcheckcache.php [add_time] => 1 [use_time] => 0 [last_check] => 1 [hit_count] => 1 [file_size] => 2435 ) [2] => Array (...iterates for each cached file) ) ) SEE ALSO
wincache_fcache_meminfo(3), wincache_ocache_fileinfo(3), wincache_ocache_meminfo(3), wincache_rplist_fileinfo(3), wincache_rplist_mem- info(3), wincache_refresh_if_changed(3), wincache_ucache_meminfo(3), wincache_ucache_info(3), wincache_scache_info(3), wincache_scache_mem- info(3). PHP Documentation Group WINCACHE_FCACHE_FILEINFO(3)

Check Out this Related Man Page

DWWW-CACHE(8)							      Debian							     DWWW-CACHE(8)

NAME
dwww-cache - manage the dwww cache of converted documents SYNOPSIS
dwww-cache --lookup type location dwww-cache --store type location dwww-cache --list type location dwww-cache --list-all dwww-cache --clean DESCRIPTION
dwww-cache manages the cache of converted documents; it is part of dwww(7). An option (the first argument) specifies the operation. Some operations operate on the whole cache, and need no other arguments. Others need the second and third argument to specify the type and pathname of the original document. (See dwww-convert(8) for more information about the arguments.) The operations are: --lookup If the document is in the cache, output it to the standard output. Otherwise, output nothing and return a non-zero status. --store Read the document from the standard input, output it to the standard output and store it into the cache. If there was an older ver- sion already in the cache, remove it. --list Output information about one document in the cache to the standard output. The information is one line, with four space delimited fields: type, pathname of original, pathname of cached, and permanent flag (y or n). --list-all Like --list, but for all documents. --clean Forget all cached documents that have been deleted. dwww-cache maintains a database with information of the cached documents. The documents themselves are stored in separate files in the cache directory. When old documents are removed from the cache by a suitable crontab entry, they will still exist in the database. This operation removes all entries from the database where either the original or the converted file is now missing. To stop the cache from growing too large, an entry in root's crontab should remove cached files that have not been accessed for a while. For example, the following commands remove all documents that have not been accessed for ten days: find /var/cache/dwww -atime +10 | xargs rm -f dwww-cache --clean The idea is to first delete the old cached files and then clean up the database. The policy of cleaning the cache has been kept outside of dwww-cache to keep the program simple, and to allow maximum flexibility. The default dwww installation creates a /etc/cron.daily/dwww, which automatically cleans the cache each day. FILES
/var/cache/dwww/db The cache directory. /var/cache/dwww/db/.cache_db The database with information about all cached documents. This is a binary file, specially encoded for small size and high speed, and should not be touched by anyone but dwww-cache. SEE ALSO
dwww(7), dwww-convert(8). AUTHOR
Lars Wirzenius <liw@iki.fi>. Modified by Robert Luberda <robert@debian.org>. See dwww(7) for copyrights and stuff. dwww 1.11.1 February 15th, 2009 DWWW-CACHE(8)
Man Page