/* Licensed to the Apache Software Foundation (ASF) under one or more *contributorlicenseagreements.SeetheNOTICEfiledistributedwith *thisworkforadditionalinformationregardingcopyrightownership. *TheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0 *(the"License");youmaynotusethisfileexceptincompliancewith *theLicense.YoumayobtainacopyoftheLicenseat * *http://www.apache.org/licenses/LICENSE-2.0 * *Unlessrequiredbyapplicablelaworagreedtoinwriting,software *distributedundertheLicenseisdistributedonan"ASIS"BASIS, *WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied. *SeetheLicenseforthespecificlanguagegoverningpermissionsand *limitationsundertheLicense.
*/
/* *disk_cache_object_t *Pointedtobycache_object_t::vobj
*/ typedefstruct disk_cache_object { constchar *root; /* the location of the cache directory */
apr_size_t root_len; constchar *prefix;
disk_cache_file_t data; /* data file structure */
disk_cache_file_t hdrs; /* headers file structure */
disk_cache_file_t vary; /* vary file structure */ constchar *hashfile; /* Computed hash key for this URI */ constchar *name; /* Requested URI without vary bits - suitable for mortals. */ constchar *key; /* On-disk prefix; URI with Vary bits (if present) */
apr_off_t file_size; /* File size of the cached data file */
disk_cache_info_t disk_info; /* Header information. */
apr_table_t *headers_in; /* Input headers to save */
apr_table_t *headers_out; /* Output headers to save */
apr_off_t offset; /* Max size to set aside */
apr_time_t timeout; /* Max time to set aside */ unsignedint done:1; /* Is the attempt to cache complete? */
} disk_cache_object_t;
/* *mod_cache_diskconfiguration
*/ /* TODO: Make defaults OS specific */ #define CACHEFILE_LEN 20/* must be less than HASH_LEN/2 */ #define DEFAULT_DIRLEVELS 2 #define DEFAULT_DIRLENGTH 2 #define DEFAULT_MIN_FILE_SIZE 1 #define DEFAULT_MAX_FILE_SIZE 1000000 #define DEFAULT_READSIZE 0 #define DEFAULT_READTIME 0
typedefstruct { constchar* cache_root;
apr_size_t cache_root_len; int dirlevels; /* Number of levels of subdirectories */ int dirlength; /* Length of subdirectory names */
} disk_cache_conf;
typedefstruct {
apr_off_t minfs; /* minimum file size for cached files */
apr_off_t maxfs; /* maximum file size for cached files */
apr_off_t readsize; /* maximum data to attempt to cache in one go */
apr_time_t readtime; /* maximum time taken to cache in one go */ unsignedint minfs_set:1; unsignedint maxfs_set:1; unsignedint readsize_set:1; unsignedint readtime_set:1;
} disk_cache_dir_conf;
#endif/*MOD_CACHE_DISK_H*/
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.