dosubot[bot] commented on issue #31841:
URL: https://github.com/apache/superset/issues/31841#issuecomment-2590873605

   <!-- Answer -->
   The issue you're encountering with the `memoized_func` in Apache Superset is 
due to the `cache_timeout` parameter defaulting to 0 if not explicitly 
provided, which results in cached objects persisting indefinitely. This 
behavior is controlled by the line:
   
   ```python
   cache_timeout = kwargs.pop("cache_timeout", 0)
   ```
   
   To resolve this, you can explicitly set the `cache_timeout` to 600 seconds 
when calling the decorated function, or modify the code to change the default 
value from 0 to 600. This will ensure that the cache expires as intended after 
600 seconds 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/utils/cache.py)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=other)</sup>
   


-- 
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