diff options
author | Evan Prodromou <evan@status.net> | 2010-01-12 23:25:25 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-12 23:25:25 -0800 |
commit | e34ece8b0630394b606b57b19de58c830fad9c4d (patch) | |
tree | d6354a6e02517dd75c32f40b1d08a4b9cffd9b11 /lib/cache.php | |
parent | 392bc728c795dd50e19a56cb097ab9a64f129573 (diff) | |
parent | ec145b73fc91dd54695dd374c8a71a11e233b8c0 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/cache.php')
-rw-r--r-- | lib/cache.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/cache.php b/lib/cache.php index b7b34c050..635c96ad4 100644 --- a/lib/cache.php +++ b/lib/cache.php @@ -179,4 +179,23 @@ class Cache return $success; } + + /** + * Close or reconnect any remote connections, such as to give + * daemon processes a chance to reconnect on a fresh socket. + * + * @return boolean success flag + */ + + function reconnect() + { + $success = false; + + if (Event::handle('StartCacheReconnect', array(&$success))) { + $success = true; + Event::handle('EndCacheReconnect', array()); + } + + return $success; + } } |