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

7:      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.63 2004/05/05 09:41:20 anders Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.64 2004/05/21 09:46:19 jonasw Exp $";   constant module_type = MODULE_TAG;   constant module_name = "Graphics: Image converter";   constant module_doc = "Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "
145:      void flush_cache() {    the_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();   }      string status() {