Skip to content

Commit

Permalink
Merge pull request #47 from nextcloud/cache-by-default
Browse files Browse the repository at this point in the history
enable server-side cache by default
  • Loading branch information
ChristophWurst committed Sep 6, 2016
2 parents 0e56612 + 0a1d6e8 commit 3249331
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,6 @@ You can enable IMAP and SMTP backend logging. A horde_imap.log for IMAP and hord
'app.mail.smtplog.enabled' => true
```

### Server-side caching
Mailbox messages and accounts can be cached on the Nextcloud server to reduce mail server load:
This requires a valid memcache to be configured
```php
'app.mail.server-side-cache.enabled' => true
```

### Use php-mail for mail sending
You can use the php mail function to send mails. This is needed for some webhosters (1&1 (1und1)):
```php
Expand Down
2 changes: 1 addition & 1 deletion lib/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function getImapConnection() {
if ($this->config->getSystemValue('app.mail.imaplog.enabled', false)) {
$params['debug'] = $this->config->getSystemValue('datadirectory') . '/horde_imap.log';
}
if ($this->config->getSystemValue('app.mail.server-side-cache.enabled', false)) {
if ($this->config->getSystemValue('app.mail.server-side-cache.enabled', true)) {
if ($this->memcacheFactory->isAvailable()) {
$params['cache'] = [
'backend' => new Cache(array(
Expand Down

0 comments on commit 3249331

Please sign in to comment.