diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-05-22 01:12:57 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-05-22 01:12:57 +1000 |
| commit | 0137b9646469ef8b4d8d38733da8d48b9d405164 (patch) | |
| tree | 68d173cc55437a0efa4a94d11bed9db543688346 /inc/config.php | |
| parent | 24932a15bfca91e7a711d55554a811a32efd4113 (diff) | |
PURGE for caching reverse-proxies like Squid or Varnish
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index 12d5f609..b519fe1e 100644 --- a/inc/config.php +++ b/inc/config.php @@ -661,6 +661,14 @@ // Keep the Google Analytics cookies to one domain -- ga._setDomainName() // $config['google_analytics_domain'] = 'www.example.org'; + // If you use Varnish, Squid, or any similar caching reverse-proxy in front of Tinyboard, + // you can configure Tinyboard to PURGE files when they're written to + //$config['purge'] = Array( + // Array('127.0.0.1', 80) + //); + // Connection timeout, in seconds + $config['purge_timeout'] = 3; + if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) { // You cannot request this file directly. header('Location: ../', true, 302); |
