Dirk Munk wrote:
Paul B. Gallagher wrote:
Dirk Munk wrote:
I have quite a strict view on caches, page files etc. When you
*start* an application that uses a cache, that cache should be
initialized. Data in a cache belongs to a running session, there
shouldn't be old junk from previous sessions in the cache.
Better would be to clear any caches on shutdown, so they don't
survive on disk until the next program launch. All well and good to
initialize on startup, but not as good.
An application may crash, and in that case the caches still contain
data, maybe even data that caused the crash. In your proposal you
rely on the assumption that caches are clear at start up. When I was
still a programmer, I learned never to assume anything. Check and
double check, or to make sure no junk is left in caches, records,
fields and so on, always initialize.
Agreed. I didn't mean to suggest clearing only on shutdown, but rather
to reject the approach of clearing only on startup. Belt and suspenders
are best.
--
War doesn't determine who's right, just who's left.
--
Paul B. Gallagher
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey