generalized no-cache management
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Thu, 4 Oct 2012 05:08:23 +0000 (07:08 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Thu, 4 Oct 2012 05:08:23 +0000 (07:08 +0200)
web/Obj/brisk.phh
web/briskin5/Obj/briskin5.phh

index af2a901..396b116 100644 (file)
@@ -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;
 
index a9813e5..30f33bb 100644 (file)
@@ -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;