LJ::handle_caches — clears caches if the CLEAR_CACHES flag is set from an earlier HUP signal that called LJ::clear_caches, otherwise does nothing.
LJ::handle_caches
cgi-bin/ljlib.pl
true (always) so you can use it in a conjunction of statements in a while loop around the application like: while (LJ::handle_caches() && FCGI::accept())