Bugfix
This commit is contained in:
parent
b0b22a1358
commit
21fed88d76
2
pom.xml
2
pom.xml
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<groupId>org.warp.filesponge</groupId>
|
<groupId>org.warp.filesponge</groupId>
|
||||||
<artifactId>FileSponge</artifactId>
|
<artifactId>FileSponge</artifactId>
|
||||||
<version>0.3.1</version>
|
<version>0.3.2</version>
|
||||||
|
|
||||||
<name>FileSponge</name>
|
<name>FileSponge</name>
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ class DiskCacheImpl implements DiskCache {
|
|||||||
@Override
|
@Override
|
||||||
public void writeMetadataSync(URL url, Metadata metadata, boolean force) {
|
public void writeMetadataSync(URL url, Metadata metadata, boolean force) {
|
||||||
// Check if this cache should cache the url, otherwise do nothing
|
// Check if this cache should cache the url, otherwise do nothing
|
||||||
if (!shouldCache.test(url)) return;
|
if (!force && !shouldCache.test(url)) return;
|
||||||
|
|
||||||
var key = serializeUrl(url);
|
var key = serializeUrl(url);
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ class DiskCacheImpl implements DiskCache {
|
|||||||
@Override
|
@Override
|
||||||
public void writeContentBlockSync(URL url, DataBlock dataBlock, boolean force) {
|
public void writeContentBlockSync(URL url, DataBlock dataBlock, boolean force) {
|
||||||
// Check if this cache should cache the url, otherwise do nothing
|
// Check if this cache should cache the url, otherwise do nothing
|
||||||
if (!shouldCache.test(url)) {
|
if (!force && !shouldCache.test(url)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user