Skip to content

Cache_dir Param #12299

@MHajjem

Description

@MHajjem

Bug Description

Cache disk system should use cache_dir not the config_dir
https://github.com/langflow-ai/langflow/blob/main/src/backend/base/langflow/services/cache/factory.py#L40C13-L43C14
return AsyncDiskCache(
cache_dir=settings_service.settings.config_dir,
expiration_time=settings_service.settings.cache_expire,
)

Reproduction

if config_dir is used
multi instance cluster will access the same cache systeme with concurrent access
this can generate
sqlite3.DatabaseError: database disk image is malformed

Expected behavior

use specific cache_dir config

Who can help?

No response

Operating System

OCS

Langflow Version

1.8.0

Python Version

None

Screenshot

No response

Flow File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions