[mod_cgi] skip local-redir handling if to self (fixes #2779, #2108)
[lighttpd.git] / src / mod_cml.h
blobf47210c9c5d6aac892936275dc374ea1d33ab9e5
1 #ifndef _MOD_CACHE_H_
2 #define _MOD_CACHE_H_
3 #include "first.h"
5 #include "buffer.h"
6 #include "server.h"
7 #include "response.h"
9 #include "plugin.h"
11 #if defined(USE_MEMCACHED)
12 #include <libmemcached/memcached.h>
13 #endif
15 #define plugin_data mod_cache_plugin_data
17 typedef struct {
18 buffer *ext;
20 array *mc_hosts;
21 buffer *mc_namespace;
22 #if defined(USE_MEMCACHED)
23 memcached_st *memc;
24 #endif
25 buffer *power_magnet;
26 } plugin_config;
28 typedef struct {
29 PLUGIN_DATA;
31 buffer *basedir;
32 buffer *baseurl;
34 buffer *trigger_handler;
36 plugin_config **config_storage;
38 plugin_config conf;
39 } plugin_data;
41 int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn);
43 #endif