source: subversion/applications/utils/mod_tile/gen_tile.h @ 16252

Last change on this file since 16252 was 15839, checked in by apmon, 11 years ago

[renderd] Add the ability to explicitly expire renderd tiles from proxys via HTCP

For large setups of mod_tile, and renderd, it may be beneficial to have a reverse proxy infront of the main tile server.
However when using a fast updating db e.g. running off the minutly diffs, the proxy may either deliver stale content, or the
cache expiry has to be set very short, which limits the effectiveness of the proxy. Instead, this patch adds an explicit
mechanism to renderd to signal to the proxy which tiles have been rerendered and thus should be discarded from the cache.

File size: 657 bytes
Line 
1#ifndef GEN_TILE_H
2#define GEN_TILE_H
3
4#include "protocol.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define HTCP_EXPIRE_CACHE 1
11#define HTCP_EXPIRE_CACHE_PORT "4827"
12
13struct item {
14    struct item *next;
15    struct item *prev;
16    struct protocol req;
17    int mx, my;
18    int fd;
19    struct item *duplicates;
20};
21
22//int render(Map &m, int x, int y, int z, const char *filename);
23void *render_thread(void *);
24struct item *fetch_request(void);
25void delete_request(struct item *item);
26void send_response(struct item *item, enum protoCmd);
27void render_init(const char *plugins_dir, const char* font_dir, int font_recurse);
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif
Note: See TracBrowser for help on using the repository browser.