[pLog-svn] r3909 - plog/trunk/class/gallery/dao

mark at devel.lifetype.net mark at devel.lifetype.net
Wed Aug 23 17:12:39 GMT 2006


Author: mark
Date: 2006-08-23 17:12:38 +0000 (Wed, 23 Aug 2006)
New Revision: 3909

Modified:
   plog/trunk/class/gallery/dao/galleryresources.class.php
Log:
Fixed a bug of resource cache.

Modified: plog/trunk/class/gallery/dao/galleryresources.class.php
===================================================================
--- plog/trunk/class/gallery/dao/galleryresources.class.php	2006-08-23 17:12:15 UTC (rev 3908)
+++ plog/trunk/class/gallery/dao/galleryresources.class.php	2006-08-23 17:12:38 UTC (rev 3909)
@@ -703,7 +703,7 @@
         		// if update ok, reset the caches
 				$this->_cache->removeData( $resource->getId(), CACHE_RESOURCES );
 				$this->_cache->removeData( $resource->getOwnerId(), CACHE_RESOURCES_USER );
-				$this->_cache->removeData( $resource->getOwnerId()."_".$resource->getFileName(), CACHE_RESOURCES_BY_NAME );
+				$this->_cache->removeData( $resource->getFileName(), CACHE_RESOURCES_BY_NAME );
 				// and update the album counters... must substract 1 from the previous album
 				// and must add one to the new album
 				$albums = new GalleryAlbums();



More information about the pLog-svn mailing list