summaryrefslogtreecommitdiff
path: root/lib/cache.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-01-13 23:10:00 +0100
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-01-13 23:10:00 +0100
commit108c51fa6859ec56269078ef9bd0459fdbd9b1ba (patch)
treec45dc1036d80ba0fdc58473819cde12bcc03eb32 /lib/cache.php
parentf7f82982ec9a8671195efdc278c2987aa92c083c (diff)
parent25ed2d2c872e59fd99b54fdf0dec1ca448feca00 (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.php19
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;
+ }
}