Changeset 5898 in subversion for trunk/roundcubemail/program/include/rcube_imap_cache.php
- Timestamp:
- Feb 21, 2012 4:43:39 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap_cache.php
r5787 r5898 600 600 601 601 /** 602 * Delete cache entries older than TTL 603 * 604 * @param string $ttl Lifetime of message cache entries 605 */ 606 function expunge($ttl) 607 { 608 // get expiration timestamp 609 $ts = get_offset_time($ttl, -1); 610 611 $this->db->query("DELETE FROM ".get_table_name('cache_messages') 612 ." WHERE changed < " . $this->db->fromunixtime($ts)); 613 614 $this->db->query("DELETE FROM ".get_table_name('cache_index') 615 ." WHERE changed < " . $this->db->fromunixtime($ts)); 616 617 $this->db->query("DELETE FROM ".get_table_name('cache_thread') 618 ." WHERE changed < " . $this->db->fromunixtime($ts)); 619 } 620 621 622 /** 602 623 * Fetches index data from database 603 624 */
Note: See TracChangeset
for help on using the changeset viewer.
