thomascube
2008-03-25 780527b4c01131d08cbf86c0620ec8fe8e4afe6e
Don't execute SQL queries if caching is disabled

1 files modified
6 ■■■■■ changed files
program/include/rcube_imap.inc 6 ●●●●● patch | view | raw | blame | history
program/include/rcube_imap.inc
@@ -2228,6 +2228,9 @@
   */
  function remove_message_cache($key, $index)
    {
    if (!$this->caching_enabled)
      return;
    $this->db->query(
      "DELETE FROM ".get_table_name('messages')."
       WHERE  user_id=?
@@ -2243,6 +2246,9 @@
   */
  function clear_message_cache($key, $start_index=1)
    {
    if (!$this->caching_enabled)
      return;
    $this->db->query(
      "DELETE FROM ".get_table_name('messages')."
       WHERE  user_id=?