Skip to content

Can not persistent cache when using HttpHeaderAuthenticator #588

@mlegy

Description

@mlegy

I am using the HttpHeaderAuthenticator and trying to persistent cache for authenticator, so I made a copy of ehcache-default.xml from the distribution, to conf/ehcache.xml

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="ehcache.xsd"
         updateCheck="false">

    <diskStore path="/mnt/data/Project/backend/tmp"/>
    <defaultCache
            maxElementsInMemory="10000"
            eternal="false"
            timeToIdleSeconds="120"
            timeToLiveSeconds="120"
            overflowToDisk="false"
            maxElementsOnDisk="10000000"
            diskPersistent="true"
            diskExpiryThreadIntervalSeconds="120"
            memoryStoreEvictionPolicy="LRU"
    />
</ehcache>

but when I recompile the app the user is logged out again.
The play.data file still exists and contains the user info and token.
Any idea what may be the problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions