From 4ff899747ae6f7c742890b45c08677f2655fc3e9 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 4 Oct 2012 07:08:23 +0200 Subject: [PATCH] generalized no-cache management --- web/Obj/brisk.phh | 6 ++---- web/briskin5/Obj/briskin5.phh | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) 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; -- 2.17.1