From afee9ca959c2bed9acf74d0ab24d24cc9d2b8790 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Fri, 15 Nov 2024 17:41:10 +0100 Subject: [PATCH] feat: Centralize Cache configuration in Meeds package - MEED-7742 - Meeds-io/meeds#2537 (#1775) This change will centralize the Cache configuration into Meeds package to ease its maintainability and evolutivity. In fact, this will allow to override the Meeds caches configurations by one single file override. --- packaging/pom.xml | 4 - .../programs-storage-configuration.xml | 76 +++---------------- 2 files changed, 11 insertions(+), 69 deletions(-) diff --git a/packaging/pom.xml b/packaging/pom.xml index 7ae0470266..11fe98e71c 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -57,10 +57,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. log4j log4j - - xml-apis - xml-apis - diff --git a/portlets/src/main/webapp/WEB-INF/conf/gamification/storage/program/programs-storage-configuration.xml b/portlets/src/main/webapp/WEB-INF/conf/gamification/storage/program/programs-storage-configuration.xml index 6a41cb1f7e..8caffc85e5 100644 --- a/portlets/src/main/webapp/WEB-INF/conf/gamification/storage/program/programs-storage-configuration.xml +++ b/portlets/src/main/webapp/WEB-INF/conf/gamification/storage/program/programs-storage-configuration.xml @@ -20,69 +20,15 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - io.meeds.gamification.dao.ProgramDAO - - - io.meeds.gamification.service.ProgramService - io.meeds.gamification.service.impl.ProgramServiceImpl - - - io.meeds.gamification.storage.ProgramStorage - io.meeds.gamification.storage.cached.ProgramCachedStorage - - - - org.exoplatform.services.cache.CacheService - - addExoCacheConfig - addExoCacheConfig - org.exoplatform.services.cache.ExoCacheConfigPlugin - Configures the cache for gamifications programs and rules - - - gamification.domain - - - gamification.domain - - - ${exo.cache.gamification.domain.MaxNodes:1000} - - - ${exo.cache.gamification.domain.TimeToLive:-1} - - - - - gamification.rule - - - gamification.rule - - - ${exo.cache.gamification.rule.MaxNodes:2000} - - - ${exo.cache.gamification.rule.TimeToLive:-1} - - - - - gamification.realization - - - gamification.realization - - - ${exo.cache.gamification.realization.MaxNodes:5000} - - - ${exo.cache.gamification.realization.TimeToLive:-1} - - - - - - + + io.meeds.gamification.dao.ProgramDAO + + + io.meeds.gamification.service.ProgramService + io.meeds.gamification.service.impl.ProgramServiceImpl + + + io.meeds.gamification.storage.ProgramStorage + io.meeds.gamification.storage.cached.ProgramCachedStorage +