brocaar commented on issue #1472:
URL: https://github.com/apache/answer/issues/1472#issuecomment-3810534112

   @LinkinStars I did a bit more testing and I think I have found the issue. I 
managed to get the state in PostgreSQL and Redis equal (active), but the 
web-interface showing inactive:
   
   <img width="3840" height="2160" alt="Image" 
src="https://github.com/user-attachments/assets/1bf8d4de-500e-41b0-9276-a8e588110336";
 />
   
   I believe the issue is the `cache.db` file on disk. On start of Answer, my 
assumption is that it reads the keys from this file, before reading the Redis 
cache. Once the Answer process knows it should use the Redis as cache, it no 
longer updates the `cache.db`, meaning the key(s) in `cache.db` are stale if 
there are any (in my case there is a key containing the plugin state). As long 
as the process runs this is fine, but on restart, it re-populates its internal 
cache with the `cache.db` keys first (and it might sync this back to Redis?, 
thus causing the state of PostgreSQL != Redis).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to