*
* @param aDir Directory where the album is located.
* @param aPath Path that this album represents.
- * @param aCache Cache to use.
+ * @param aCache Cache to use. Note that a cache usedin one album hierarachy should not be used in another.
* @throws IOException
*/
public FileSystemAlbum(File aDir, String aPath, Cache<String, ArrayList<PhotoEntry>> aCache) throws IOException {
}
_dir = aDir;
_path = aPath;
- _entries = new CachedObject<String, ArrayList<PhotoEntry>>(aCache, aPath, new AlbumComputation(this));
+ _entries = new CachedObject<String, ArrayList<PhotoEntry>>(aCache, "fs:" + aPath, new AlbumComputation(this));
}
/**