Permalink
Browse files

removed the cache default configurations from the JPublish package. T…

…hey may conflict with the user ones. Example files found in docs/cache
  • Loading branch information...
florin.patrascu
florin.patrascu committed May 5, 2008
1 parent 32aff19 commit 6589f4a83f66797c25b6ed46e962e34e917e4cbf
Showing with 49 additions and 45 deletions.
  1. +5 −0 CHANGELOG.txt
  2. +7 −7 {java/src → docs/cache}/ehcache.xml
  3. +37 −0 docs/cache/whirlycache.xml
  4. +0 −38 java/src/whirlycache.xml
View
@@ -1,5 +1,10 @@
JPublish 4 change log:
[2008.05.05]
- removed the cache default configurations from the JPublish package. They may conflict with the
user ones. Copy the docs/cache/ehcache.xml and/or the docs/cache/whirlycache.xml to your WEB-INF/classes
folder in case you don't have a custom cache setup already.
[2008.03.06]
- added the ability to use locale when parsing or formatting using DateUtilities
View
@@ -1,5 +1,5 @@
<!--
~ Copyright 2004-2007 the original author or authors.
~ Copyright 2004-2008 the original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
@@ -30,11 +30,11 @@
defined on your system. On a standard Linux system this will be /tmp"
-->
<defaultCache
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="10"
timeToLiveSeconds="20"
/>
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="10"
timeToLiveSeconds="20"
/>
</ehcache>
View
@@ -0,0 +1,37 @@
<!--
~ Copyright 2004-2008 the original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
-->
<whirlycache>
<default-cache>default</default-cache>
<cache name="default">
<backend>com.whirlycott.cache.impl.ConcurrentHashMapImpl</backend>
<tuner-sleeptime>54000</tuner-sleeptime>
<!-- evicts oldest items when pruning -->
<!-- <policy>com.whirlycott.cache.policy.FIFOMaintenancePolicy</policy> -->
<!-- evicts least recently used items when pruning -->
<policy>com.whirlycott.cache.policy.LRUMaintenancePolicy</policy>
<!-- evicts least frequently used items when pruning -->
<!-- <policy>com.whirlycott.cache.policy.LFUMaintenancePolicy</policy> -->
<maxsize>50000</maxsize>
</cache>
</whirlycache>
View
@@ -1,38 +0,0 @@
<!--
~ Copyright 2004-2007 the original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
-->
<whirlycache>
<default-cache>default</default-cache>
<cache name="default">
<backend>com.whirlycott.cache.impl.ConcurrentHashMapImpl</backend>
<tuner-sleeptime>54000</tuner-sleeptime>
<!-- evicts oldest items when pruning -->
<!-- <policy>com.whirlycott.cache.policy.FIFOMaintenancePolicy</policy> -->
<!-- evicts least recently used items when pruning -->
<policy>com.whirlycott.cache.policy.LRUMaintenancePolicy</policy>
<!-- evicts least frequently used items when pruning -->
<!-- <policy>com.whirlycott.cache.policy.LFUMaintenancePolicy</policy> -->
<maxsize>50000</maxsize>
</cache>
</whirlycache>

0 comments on commit 6589f4a

Please sign in to comment.