From: Matteo Nastasi (mop) Date: Thu, 4 Oct 2012 05:08:23 +0000 (+0200) Subject: generalized no-cache management X-Git-Tag: v4.0.0~45 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=4ff899747ae6f7c742890b45c08677f2655fc3e9;p=brisk.git generalized no-cache management --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index af2a901..396b116 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2178,6 +2178,8 @@ class Room { { printf("NEW_SOCKET (root): %d\n", intval($new_socket)); + force_no_cache($header_out); + switch ($path) { case "": case "index.php": @@ -2186,8 +2188,6 @@ class Room { $content = ob_get_contents(); ob_end_clean(); - force_no_cache($header_out); - $s_a_p->pgflush_try_add($new_socket, 20, $header_out, $content); return TRUE; @@ -2198,8 +2198,6 @@ class Room { $content = ob_get_contents(); ob_end_clean(); - force_no_cache($header_out); - $s_a_p->pgflush_try_add($new_socket, 20, $header_out, $content); return TRUE; diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index a9813e5..30f33bb 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -1459,6 +1459,8 @@ class Bin5 { if (($table_token = gpcs_var('table_token', $get, $post, $cookie)) === FALSE) unset($table_token); + force_no_cache($header_out); + switch ($path) { case "": case "index.php": @@ -1467,8 +1469,6 @@ class Bin5 { $content = ob_get_contents(); ob_end_clean(); - force_no_cache($header_out); - $s_a_p->pgflush_try_add($new_socket, 20, $header_out, $content); return TRUE; @@ -1480,8 +1480,6 @@ class Bin5 { $content = ob_get_contents(); ob_end_clean(); - force_no_cache($header_out); - $s_a_p->pgflush_try_add($new_socket, 20, $header_out, $content); return TRUE;