X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=af2a9012c57b6309e879eb4bca324ae9b2eaad5c;hb=b6f3d93f02fbf3adf376f9fbaad8cc739b8d3145;hp=b52c3330bd5e2eb8c1212fb3ee30b3cef314c83b;hpb=05e6e4e36e9c020028c0a026cb6649259720586c;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index b52c333..af2a901 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -293,6 +293,13 @@ function mop_flush() flush(); } +function force_no_cache(&$header_out) +{ + $header_out['Pragma'] = 'no-cache, must-revalidate'; + $header_out['Cache-Control'] = 'no-cache'; + $header_out['Expires'] = '-1'; +} + function file_lock($fname, $is_exclusive) { if (($res = @fopen($fname, "r+")) == FALSE) { @@ -2179,6 +2186,8 @@ 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; @@ -2189,6 +2198,8 @@ 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;