Webdav internal caches - how to disable them ?
pjakub Feb 19, 2013 4:57 AMHi,
I'm using modeshape in cluster and have problem with webdav synchronization.
If I request file like 3-4 seconds after it's uploaded into other cluster node, it get served and everything is ok.
If I request webdav to serve file when it's not in storage yet, then it returns 404 not found as it should. But then after I upload my file it keeps anserwing with 404 not found. it somehow caches that answer.
If I wait for 2-3 minutes, then it refresh some internal cache and return the file properly.
I can't find any configuration option to disable that caching.
Can that be somehow configured ? Or can I override that cache to lookup file and don't cache answer if it was not found?
my modeshape configruation looks like that:
{
"name" : "tlk_repo",
"jndiName" : "",
"storage" : {
"cacheName" : "tlk_infinispan_repo",
"cacheConfiguration" : "ispn-configuration.xml",
"binaryStorage" : {
"type" : "cache",
"dataCacheName" : "dataCache",
"metadataCacheName" : "metadataCache"
}
},
"query" : {
"enabled" : false,
"enableFullTextSearch" : false
},
"workspaces" : {
"predefined" : ["default","global"],
"default" : "default",
"allowCreation" : true
},
"security" : {
"anonymous" : {
"roles" : ["readonly", "connect","admin","readwrite"],
"useOnFailedLogin" : false
}
},
"node-types" : ["tlk-custom-node-types.cnd"],
"clustering" : {
"clusterName" : "ms-cluster",
"channelConfiguration" : "jgroups-ms.xml"
}
}
and important part of ispn configuration:
<namedCache name="tlk_infinispan_repo">
<clustering mode="distribution">
<sync />
<hash numOwners="2" rehashWait="120000" rehashRpcTimeout="600000" />
<l1 enabled="true" lifespan="600000" />
</clustering>
<transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup" transactionMode="TRANSACTIONAL" lockingMode="OPTIMISTIC" />
</namedCache>
<namedCache name="dataCache">
<clustering mode="distribution">
<sync />
<hash numOwners="2" rehashWait="120000" rehashRpcTimeout="600000" />
<l1 enabled="true" lifespan="600000" />
</clustering>
</namedCache>
<namedCache name="metadataCache">
<clustering mode="distribution">
<sync />
<hash numOwners="2" rehashWait="120000" rehashRpcTimeout="600000" />
<l1 enabled="true" lifespan="600000" />
</clustering>
</namedCache>
modifying l1 cache don't bring any change to behaviour