summaryrefslogtreecommitdiff
path: root/plugins/database_attachments/config.inc.php.dist
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-13 14:16:00 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-13 14:16:00 +0200
commitf0398c87d9bd472d23b6dfce6943d97fbf9fabf5 (patch)
tree98cecb37a950f2019668a9071f27f5630002845d /plugins/database_attachments/config.inc.php.dist
parentdf9d004cf838ec3e7e8f26d8255ffb78665c1c59 (diff)
Use rcube_cache class to store attachments in database.
Add options to configure TTL and cache type.
Diffstat (limited to 'plugins/database_attachments/config.inc.php.dist')
-rw-r--r--plugins/database_attachments/config.inc.php.dist12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/database_attachments/config.inc.php.dist b/plugins/database_attachments/config.inc.php.dist
new file mode 100644
index 000000000..b23a9a1be
--- /dev/null
+++ b/plugins/database_attachments/config.inc.php.dist
@@ -0,0 +1,12 @@
+<?php
+
+// By default this plugin stores attachments in filesystem
+// and copies them into sql database.
+// You can change it to use 'memcache' or 'apc'.
+$rcmail_config['database_attachments_cache'] = 'db';
+
+// Attachment data expires after specied TTL time in seconds (max.2592000).
+// Default is 12 hours.
+$rcmail_config['database_attachments_cache_ttl'] = 12 * 60 * 60;
+
+?>