mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
improve cache configuration of blame, browse and log command
This commit is contained in:
@@ -83,7 +83,7 @@ public final class BlameCommandBuilder
|
|||||||
{
|
{
|
||||||
|
|
||||||
/** name of the cache */
|
/** name of the cache */
|
||||||
static final String CACHE_NAME = "sonia.scm.cache.blame";
|
static final String CACHE_NAME = "sonia.cache.cmd.blame";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the logger for BlameCommandBuilder
|
* the logger for BlameCommandBuilder
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public final class BrowseCommandBuilder
|
|||||||
{
|
{
|
||||||
|
|
||||||
/** Name of the cache */
|
/** Name of the cache */
|
||||||
static final String CACHE_NAME = "sonia.scm.cache.browse";
|
static final String CACHE_NAME = "sonia.cache.cmd.browse";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the logger for BrowseCommandBuilder
|
* the logger for BrowseCommandBuilder
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public final class LogCommandBuilder
|
|||||||
{
|
{
|
||||||
|
|
||||||
/** name of the cache */
|
/** name of the cache */
|
||||||
static final String CACHE_NAME = "sonia.scm.cache.log";
|
static final String CACHE_NAME = "sonia.cache.cmd.log";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the logger for LogCommandBuilder
|
* the logger for LogCommandBuilder
|
||||||
|
|||||||
@@ -161,4 +161,31 @@
|
|||||||
diskPersistent="false"
|
diskPersistent="false"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<cache
|
||||||
|
name="sonia.cache.cmd.log"
|
||||||
|
maxElementsInMemory="20000"
|
||||||
|
eternal="false"
|
||||||
|
overflowToDisk="false"
|
||||||
|
timeToLiveSeconds="86400"
|
||||||
|
diskPersistent="false"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<cache
|
||||||
|
name="sonia.cache.cmd.browse"
|
||||||
|
maxElementsInMemory="10000"
|
||||||
|
eternal="false"
|
||||||
|
overflowToDisk="false"
|
||||||
|
timeToLiveSeconds="86400"
|
||||||
|
diskPersistent="false"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<cache
|
||||||
|
name="sonia.cache.cmd.blame"
|
||||||
|
maxElementsInMemory="1000"
|
||||||
|
eternal="false"
|
||||||
|
overflowToDisk="false"
|
||||||
|
timeToLiveSeconds="86400"
|
||||||
|
diskPersistent="false"
|
||||||
|
/>
|
||||||
|
|
||||||
</ehcache>
|
</ehcache>
|
||||||
|
|||||||
Reference in New Issue
Block a user