A brief file description. More...
#include "Main.h"
#include "P_EventSystem.h"
#include "ControlBase.h"
Go to the source code of this file.
Data Structures | |
class | CacheControlResult |
class | CacheControlRecord |
Defines | |
#define | CACHE_CONTROL_TIMEOUT (HRTIME_HOUR*1) |
Enumerations | |
enum | CacheControlType { CC_INVALID = 0, CC_REVALIDATE_AFTER, CC_NEVER_CACHE, CC_STANDARD_CACHE, CC_IGNORE_NO_CACHE, CC_CLUSTER_CACHE_LOCAL, CC_IGNORE_CLIENT_NO_CACHE, CC_IGNORE_SERVER_NO_CACHE, CC_PIN_IN_CACHE, CC_TTL_IN_CACHE, CC_NUM_TYPES } |
Functions | |
inkcoreapi void | getCacheControl (CacheControlResult *result, HttpRequestData *rdata, OverridableHttpConfigParams *h_txn_conf, char *tag=NULL) |
inkcoreapi bool | getClusterCacheLocal (URL *url, char *hostname) |
inkcoreapi bool | host_rule_in_CacheControlTable () |
inkcoreapi bool | ip_rule_in_CacheControlTable () |
void | initCacheControl () |
void | reloadCacheControl () |
Variables | |
const int | CC_UNSET_TIME = -1 |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file CacheControl.h.
#define CACHE_CONTROL_TIMEOUT (HRTIME_HOUR*1) |
Definition at line 42 of file CacheControl.h.
Referenced by reloadCacheControl().
enum CacheControlType |
Definition at line 48 of file CacheControl.h.
inkcoreapi void getCacheControl | ( | CacheControlResult * | result, | |
HttpRequestData * | rdata, | |||
OverridableHttpConfigParams * | h_txn_conf, | |||
char * | tag = NULL | |||
) |
Definition at line 174 of file CacheControl.cc.
References OverridableHttpConfigParams::cache_cluster_cache_local, OverridableHttpConfigParams::cache_ignore_client_cc_max_age, OverridableHttpConfigParams::cache_ignore_client_no_cache, OverridableHttpConfigParams::cache_ignore_server_no_cache, CacheControlResult::cluster_cache_local, CacheControlResult::ignore_client_cc_max_age, CacheControlResult::ignore_client_no_cache, CacheControlResult::ignore_server_no_cache, ControlMatcher< Data, Result >::Match(), and HttpRequestData::tag.
Referenced by update_cache_control_information_from_config().
inkcoreapi bool getClusterCacheLocal | ( | URL * | url, | |
char * | hostname | |||
) |
Definition at line 197 of file CacheControl.cc.
References HTTPHdr::clear(), CacheControlResult::cluster_cache_local, HTTPHdr::create(), HttpRequestData::hdr, HTTP_TYPE_REQUEST, ControlMatcher< Data, Result >::Match(), and HTTPHdr::url_set().
Referenced by ShowCache::delete_url(), and ShowCache::lookup_url().
inkcoreapi bool host_rule_in_CacheControlTable | ( | ) |
Definition at line 136 of file CacheControl.cc.
References ControlMatcher< Data, Result >::hostMatch.
void initCacheControl | ( | ) |
Definition at line 148 of file CacheControl.cc.
References cacheControlFile_CB(), http_dest_tags, ink_assert, modulePrefix, new_ProxyMutex(), and REC_RegisterConfigUpdateFunc.
Referenced by main().
inkcoreapi bool ip_rule_in_CacheControlTable | ( | ) |
Definition at line 142 of file CacheControl.cc.
References ControlMatcher< Data, Result >::ipMatch.
Referenced by HttpSM::init().
void reloadCacheControl | ( | ) |
Definition at line 163 of file CacheControl.cc.
References CACHE_CONTROL_TIMEOUT, Debug, ET_CACHE, eventProcessor, http_dest_tags, modulePrefix, and EventProcessor::schedule_in().
Referenced by CC_UpdateContinuation::file_update_handler().
const int CC_UNSET_TIME = -1 |
Definition at line 40 of file CacheControl.h.