mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-29 15:21:53 +00:00 
			
		
		
		
	git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@58846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
		
			
				
	
	
		
			32 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version='1.0' encoding='UTF-8'?>
 | 
						|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
 | 
						|
 | 
						|
<beans>
 | 
						|
 | 
						|
    <import resource="classpath:alfresco/application-context.xml" />
 | 
						|
    
 | 
						|
    <bean id="cachingContentStoreCache" class="org.alfresco.repo.cache.DefaultSimpleCache"/>
 | 
						|
 | 
						|
    <bean id="backingStore" class="org.alfresco.repo.content.filestore.FileContentStore">
 | 
						|
        <constructor-arg>
 | 
						|
            <value>${dir.contentstore}</value>
 | 
						|
        </constructor-arg>
 | 
						|
    </bean>
 | 
						|
 | 
						|
 | 
						|
    <bean id="contentCache" class="org.alfresco.repo.content.caching.ContentCacheImpl">
 | 
						|
        <property name="memoryStore" ref="cachingContentStoreCache"/>
 | 
						|
        <property name="cacheRoot" value="${dir.cachedcontent}"/>
 | 
						|
    </bean>
 | 
						|
 | 
						|
 | 
						|
    <bean id="cachingContentStore" class="org.alfresco.repo.content.caching.CachingContentStore">
 | 
						|
        <property name="backingStore" ref="backingStore"/>
 | 
						|
        <property name="cache" ref="contentCache"/>
 | 
						|
        <property name="cacheOnInbound" value="true"/>
 | 
						|
    </bean>
 | 
						|
    
 | 
						|
    <!-- Override the usual fileContentStore so that the CachingContentStore is used in its place -->
 | 
						|
    <alias name="cachingContentStore" alias="fileContentStore"/>
 | 
						|
</beans>
 |