2011年9月15日

Re: Purging old locally-cached messages

At Thu, 15 Sep 2011 08:03:13 +0800,
James Harkins wrote:
>
> At Wed, 14 Sep 2011 23:04:02 +0200,
> Herbert J. Skuhra wrote:
> >
> > On Wed, 14 Sep 2011 16:51:48 +0800
> > James Harkins <jamshark70@xxxxx> wrote:

> >
> > > I would like to remove the locally-cached copies of messages that
> > > are older than, say, six months.
> >
> > elmo-cache-expire-by-age ?
>
> This seems not to have had any effect. I did M-x
> elmo-cache-expire-by-age and entered 180 for the number of days, but
> the cache directory still contains a lot of files older than that
> (e.g., December 10, 2010).
>
> I also verified that elmo-cache-directory is the same location where I'm checking for old files.
>
> Maybe a bug in that function?


It's worth noticing that `elmo-cache-expire-by-age' uses the files'
atime (=time last accessed) to calculate the age. This means that
every program that accesses files in .elmo/cache will reset the age
counter. Even if the program just reads the file (e.g. backup
process).

Using atime makes sense but doesn't feel right. E.g. I've mounted my
home directory with the noatime option, so atime is never updated and
the same as ctime (creation) or mtime (modification).

Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@xxxxx
Email..... dmaus@xxxxx

--pgp-sign-Multipart_Thu_Sep_15_06:05:14_2011-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iF4EABEIAAYFAk5xeXoACgkQma24O1pEeOYuXgD/bLQu7qfLQLgoIINfxYHHZWRo
gUy7tCIKmVnXyFjCC+wBANq9bXUF5wtB8LY5Mx1RlR2MAQ272X9KVJNNfugSphtg
=qjsM
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Thu_Sep_15_06:05:14_2011-1--


投稿者 xml-rpc : 2011年9月15日 13:05
役に立ちました?:
過去のフィードバック 平均:(0) 総合:(0) 投票回数:(0)
本記事へのTrackback: http://hoop.euqset.org/blog/mt-tb2006.cgi/107873
トラックバック
コメント
コメントする




画像の中に見える文字を入力してください。