/* How long did this transaction take? */
gettimeofday(&tx_finish, NULL);
- lprintf(9, "Transaction [%s] completed in %ld.%06ld seconds.\n",
+ lprintf(9, "SL: Transaction [%s] completed in %ld.%06ld seconds.\n",
ChrPtr(Hdr.this_page),
((tx_finish.tv_sec*1000000 + tx_finish.tv_usec) - (tx_start.tv_sec*1000000 + tx_start.tv_usec)) / 1000000,
((tx_finish.tv_sec*1000000 + tx_finish.tv_usec) - (tx_start.tv_sec*1000000 + tx_start.tv_usec)) % 1000000
#ifndef TECH_PREVIEW
lprintf(9, "output_static('%s') %s\n", what, content_type);
#endif
- http_transmit_thing(content_type, 1);
+ http_transmit_thing(content_type, 2);
}
if (yesbstr("force_close_session")) {
end_webcit_session();
PACKAGE_STRING);
}
- if (cache) {
+ if (cache > 0) {
char httpTomorow[128];
http_datestring(httpTomorow, sizeof httpTomorow,
);
}
- stuff_to_cookie(cookie, 1024,
- WCC->wc_session,
- WCC->wc_username,
- WCC->wc_password,
- WCC->wc_roomname,
- get_selected_language()
- );
+ if (cache < 2) {
- if (unset_cookies) {
- hprintf("Set-cookie: webcit=%s; path=/\r\n", unset);
- } else {
- hprintf("Set-cookie: webcit=%s; path=/\r\n", cookie);
- if (server_cookie != NULL) {
- hprintf("%s\n", server_cookie);
+ stuff_to_cookie(cookie, 1024,
+ WCC->wc_session,
+ WCC->wc_username,
+ WCC->wc_password,
+ WCC->wc_roomname,
+ get_selected_language()
+ );
+
+ if (unset_cookies) {
+ hprintf("Set-cookie: webcit=%s; path=/\r\n", unset);
+ } else {
+ hprintf("Set-cookie: webcit=%s; path=/\r\n", cookie);
+ if (server_cookie != NULL) {
+ hprintf("%s\n", server_cookie);
+ }
}
}
#ifndef TECH_PREVIEW
lprintf(9, "http_transmit_thing(%s)%s\n",
content_type,
- (is_static ? " (static)" : "")
+ ((is_static > 0) ? " (static)" : "")
);
#endif
output_headers(0, 0, 0, 0, 0, is_static);