Skip to content

Commit

Permalink
Changed cache scheme to cache:
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Sep 26, 2024
1 parent ec7815a commit 3893de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/jasper/component/FileCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public Ref fetchThumbnail(String url, String origin, OutputStream os) {
if (bannedOrBroken(fullSize)) return null;
if (fullSize.isThumbnail()) return fetch(url, origin, os, false);
var thumbnailId = "t_" + fullSize.getId();
var thumbnailUrl = "internal:" + thumbnailId;
var thumbnailUrl = "cache:" + thumbnailId;
if (storage.exists(origin, CACHE, thumbnailId)) {
return fetch(thumbnailUrl, origin, os, false);
} else {
Expand Down Expand Up @@ -209,7 +209,7 @@ public Ref save(String origin, InputStream in, String mimeType, String ...tags)
.mimeType(mimeType)
.contentLength(storage.size(origin, CACHE, id))
.build();
return tagger.internalPlugin("internal:" + id, origin, "_plugin/cache", cache, tags);
return tagger.internalPlugin("cache:" + id, origin, "_plugin/cache", cache, tags);
}

@Timed(value = "jasper.cache")
Expand Down

0 comments on commit 3893de1

Please sign in to comment.