forked from leftypol/leftypol
PURGE for caching reverse-proxies like Squid or Varnish
This commit is contained in:
parent
24932a15bf
commit
0137b96464
2 changed files with 36 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue