* decide whether or not it wants to cache this particular entity.
* If the size is unknown, a size of -1 should be set.
*/
-int cache_create_entity(request_rec *r, const char *types, char *url, apr_size_t size)
+int cache_create_entity(request_rec *r, const char *types, char *url, apr_off_t size)
{
cache_handle_t *h = apr_pcalloc(r->pool, sizeof(cache_handle_t));
const char *next = types;
APR_IMPLEMENT_EXTERNAL_HOOK_RUN_FIRST(cache, CACHE, int, create_entity,
(cache_handle_t *h, request_rec *r, const char *type,
- const char *urlkey, apr_size_t len),
+ const char *urlkey, apr_off_t len),
(h, r, type,urlkey,len),DECLINED)
APR_IMPLEMENT_EXTERNAL_HOOK_RUN_FIRST(cache, CACHE, int, open_entity,
(cache_handle_t *h, request_rec *r, const char *type,
const char *cc_out = apr_table_get(r->headers_out, "Cache-Control");
const char *exps, *lastmods, *dates, *etag;
apr_time_t exp, date, lastmod, now;
- apr_size_t size;
+ apr_off_t size;
cache_info *info;
void *sconf = r->server->module_config;
cache_server_conf *conf =
* cache_storage.c
*/
int cache_remove_url(request_rec *r, const char *types, char *url);
-int cache_create_entity(request_rec *r, const char *types, char *url, apr_size_t size);
+int cache_create_entity(request_rec *r, const char *types, char *url, apr_off_t size);
int cache_remove_entity(request_rec *r, const char *types, cache_handle_t *h);
int cache_select_url(request_rec *r, const char *types, char *url);
apr_status_t cache_generate_key_default( request_rec *r, apr_pool_t*p, char**key );
APR_DECLARE_EXTERNAL_HOOK(cache, CACHE, int, create_entity,
(cache_handle_t *h, request_rec *r, const char *type,
- const char *urlkey, apr_size_t len))
+ const char *urlkey, apr_off_t len))
APR_DECLARE_EXTERNAL_HOOK(cache, CACHE, int, open_entity,
(cache_handle_t *h, request_rec *r, const char *type,
const char *urlkey))
static int create_entity(cache_handle_t *h, request_rec *r,
const char *type,
const char *key,
- apr_size_t len)
+ apr_off_t len)
{
disk_cache_conf *conf = ap_get_module_config(r->server->module_config,
&disk_cache_module);
static int create_entity(cache_handle_t *h, request_rec *r,
const char *type,
const char *key,
- apr_size_t len)
+ apr_off_t len)
{
cache_object_t *obj, *tmp_obj;
mem_cache_object_t *mobj;