parsed.org

Tips by tag: headers

IMAP Header Caching by cygnus on Mar 20, 2006 12:33 PM

Starting with Mutt 1.5.7, you can have Mutt cache IMAP headers to improve IMAP performance considerably. Set the header_cache option in your ~/.muttrc:

set header_cache=/home/bob/.cache_dir
cacheconfigurationheadersimapmessagesmuamutt
Mutt Templates by xinu on Jan 12, 2005 12:11 PM

If you know you want to use a previous email as a template, find the message and press M-e. It will dump you in an editor with the same headers and content.

configurationeditorheaderskeystrokesmuamutttemplate
Turning Off PHP Caching by cygnus on Dec 31, 2005 04:07 PM

When using sessions in PHP, the default PHP configuration causes PHP to send a no-cache header to your browser so that session-managed pages are not cached. Sometimes this is not the desired behavior, such as when writing a script whose output is binary data such as images which are stored in a database. If this is the case, you can turn off the caching by using functions to modify the PHP configuration on a per-request basis. Call these functions before calling the session_start() function:

// Let the browser and proxies cache output
session_cache_limiter('public');

// One-day (60 * 24, in minutes) cache expiration time for output
session_cache_expire(60 * 24);

(Note: this behavior is documented at http://www.php.net/manual/en/ref.session.php.)

functionsheadershttplanguagesphpprogrammingsession
RSS