Resolved the 'CACHE_DIR' Attribute: Moved the definition of the 'CACHE_DIR' attribute outside of the if condition, ensuring it is available wherever needed throughout the application.
Default Values for API Initialization: Added default values for critical parameters during API initialization, enhancing reliability and preventing errors.
Minor Code Refactoring: Conducted minor code refactoring to improve overall structure and prevent similar issues from occurring in the future.
This hotfix enhances the application's stability and ensures smooth caching operations, leading to an improved user experience.
Thanks @mayankwebbing, I really appreciate the PR and the bug reproduction code in the issue :heart:. I made a couple of small edits right on this branch and will publish a new version right now.
Key Changes:
if
condition, ensuring it is available wherever needed throughout the application.This hotfix enhances the application's stability and ensures smooth caching operations, leading to an improved user experience.