Changeset 1219 in subversion


Ignore:
Timestamp:
Mar 25, 2008 3:09:56 PM (5 years ago)
Author:
thomasb
Message:

Don't execute SQL queries if caching is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap.inc

    r1201 r1219  
    22292229  function remove_message_cache($key, $index) 
    22302230    { 
     2231    if (!$this->caching_enabled) 
     2232      return; 
     2233     
    22312234    $this->db->query( 
    22322235      "DELETE FROM ".get_table_name('messages')." 
     
    22442247  function clear_message_cache($key, $start_index=1) 
    22452248    { 
     2249    if (!$this->caching_enabled) 
     2250      return; 
     2251     
    22462252    $this->db->query( 
    22472253      "DELETE FROM ".get_table_name('messages')." 
Note: See TracChangeset for help on using the changeset viewer.