chat::Package proc flush_rooms (public)

 chat::Package[i] flush_rooms

Defined in packages/chat/tcl/xotcl-chat-procs.tcl

Flush every room supposed to be archived and automatically flushed. Meant to be executed in a scheduled procedure.

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
foreach room_id [::xo::dc list get_rooms {
    select room_id from chat_rooms
    where archive_p = 't' and auto_flush_p = 't'
}] {
    set room [::xo::db::Class get_instance_from_db -id $room_id]
    $room flush
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: