We are using SDL Web 8.5 and DXA CTP 2.0 Java. DXA Model Service is configured on Linux server. When we publish any Page or Component the cache for PageModel
and EntityModel
s are not getting invalidated until we wait for around 1 hour or restart the Model Service. Ecache-cli.config
is as below
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://www.ehcache.org/v3'
xsi:schemaLocation="http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.1.xsd">
<cache-template name="default">
<expiry>
<ttl unit="seconds">3600</ttl>
</expiry>
<heap unit="entries">10000</heap>
</cache-template>
<cache alias="sitemaps" uses-template="default"/>
<cache alias="pageModels" uses-template="default"/>
<cache alias="entityModels" uses-template="default"/>
<cache alias="config" uses-template="default"/>
<cache alias="defaultCache" uses-template="default"/>
</config>