* Defaults to an ALL search.
* @param array $options Additional options:
* <pre>
+ * 'nocache' - (boolean) Don't cache the results.
+ * DEFAULT: false (results cached, if possible)
* 'results' - (array) The data to return. Consists of zero or more of the
* following flags:
* <pre>
* array - the generated query is already added to '_query' key
* above. */
$cache = null;
- if ($this->_initCache(true) &&
+ if (empty($options['nocache']) &&
+ $this->_initCache(true) &&
(isset($this->_init['enabled']['CONDSTORE']) ||
!$query->flagSearch())) {
$cache = $this->_getSearchCache('search', $mailbox, $options);
/**
* Store FETCH data in cache.
*
- * @param array $data The data array.
- * @param array $options Additional options:
+ * @param array $data The data array.
+ * @param array $options Additional options:
* <pre>
* 'mailbox' - (string) The mailbox to update.
* DEFAULT: The selected mailbox.
}
}
- /* We need to get Msgno -> UID lookup table if we are caching.
- * Apparently, there is no guarantee that if we are using QRESYNC that
- * we will get VANISHED responses, so we need to do this. */
+ /* We need to get sequence num -> UID lookup table if we are caching.
+ * There is no guarantee that if we are using QRESYNC that we will get
+ * VANISHED responses, so this is necessary. */
if ($use_cache && is_null($s_res)) {
/* Keys in $s_res['sort'] start at 0, not 1. */
$s_res = $this->_getSeqUIDLookup(null, false);