TYPO3 API  SVNRelease
preferences.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /****************************************************************************/
00004 /*                                                                          */
00005 /* YOU MAY WISH TO MODIFY OR REMOVE THE FOLLOWING LINES WHICH SET DEFAULTS  */
00006 /*                                                                          */
00007 /****************************************************************************/
00008 
00009 // Sets the default charset so that setCharset() is not needed elsewhere
00010 Swift_Preferences::getInstance()->setCharset('utf-8');
00011 
00012 // Without these lines the default caching mechanism is "array" but this uses
00013 // a lot of memory.
00014 // If possible, use a disk cache to enable attaching large attachments etc
00015 if (function_exists('sys_get_temp_dir') && is_writable(sys_get_temp_dir()))
00016 {
00017   Swift_Preferences::getInstance()
00018     -> setTempDir(sys_get_temp_dir())
00019     -> setCacheType('disk');
00020 }