summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-05-20 13:48:45 +0000
committeralecpl <alec@alec.pl>2011-05-20 13:48:45 +0000
commitccc059fd70ea4eb5a279d0603b21a54328bf9251 (patch)
tree9e603e3dea4e2d83095b9f25c01d4c780dc54490 /program/include/rcube_imap.php
parent254d5ef32b7ec45a48abd43f19c84168dabe13d1 (diff)
- Re-designed cache, fixes memcache/apc issues
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 7e97b3c39..d6e4440cc 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -3232,7 +3232,7 @@ class rcube_imap
// try to subscribe it
if ($result) {
// clear cache
- $this->clear_cache('/^mailboxes.*/', true);
+ $this->clear_cache('mailboxes', true);
if ($subscribe)
$this->subscribe($mailbox);
@@ -3288,7 +3288,7 @@ class rcube_imap
// clear cache
$this->clear_message_cache($mailbox.'.msg');
- $this->clear_cache('/^mailboxes.*/', true);
+ $this->clear_cache('mailboxes', true);
}
return $result;
@@ -3330,7 +3330,7 @@ class rcube_imap
// clear mailbox-related cache
$this->clear_message_cache($mailbox.'.msg');
- $this->clear_cache('/^mailboxes.*/', true);
+ $this->clear_cache('mailboxes', true);
}
return $result;
@@ -3786,12 +3786,12 @@ class rcube_imap
/**
* Clears the cache.
*
- * @param string $key Cache key name or pattern
- * @param boolean $pattern_mode Enable it to clear all keys with name
- * matching PREG pattern in $key
+ * @param string $key Cache key name or pattern
+ * @param boolean $prefix_mode Enable it to clear all keys starting
+ * with prefix specified in $key
* @access public
*/
- function clear_cache($key=null, $pattern_mode=false)
+ function clear_cache($key=null, $prefix_mode=false)
{
if ($this->cache) {
$this->cache->remove($key, $pattern_mode);
@@ -4585,7 +4585,7 @@ class rcube_imap
// clear cached mailbox list(s)
if ($updated) {
- $this->clear_cache('/^mailboxes.*/', true);
+ $this->clear_cache('mailboxes', true);
}
return $updated;