Branch: Tag:

2004-05-21

2004-05-21 09:46:19 by 0

Flushing image caches now also flushes the memory cache where stale URLs
may have been stored. (Should the protocol cache be taken care of too?)

Rev: server/modules/graphics/cimg.pike:1.64
Rev: server/modules/graphics/gbutton.pike:1.109

27:   // must also be aligned left or right.       - constant cvs_version = "$Id: gbutton.pike,v 1.108 2004/05/20 20:44:43 jonasw Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.109 2004/05/21 09:46:19 jonasw Exp $";   constant thread_safe = 1;      #include <module.h>
212:      void flush_cache() {    button_cache->flush(); +  +  // It's possible that user code contains a number of stale URLs in +  // e.g. <cache> blocks so we can just as well flush the RAM cache to +  // reduce the risk of broken images. +  cache.flush_memory_cache();   }      Image.Layer layer_slice( Image.Layer l, int from, int to )