Skip to content

wrap argument (ProxyBackend) does not work on cache_from_config #41

Closed
@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by jvanasco (jvanasco)

It appears that the settings in ( file = dogpile.cache.region.py CacheRegion.configure() are not synched with CacheRegion.configure_from_config()

editing line 344 to reflect the following makes it work:

    -   _config_prefix="%sarguments." % prefix
    +   _config_prefix="%sarguments." % prefix ,
    +    wrap = config_dict.get(
    +                        "%swrap" % prefix, None),

This wouldn't come up if you were building the regions entirely off a config file, but if you're using a dict to track multiple regions, this creates an issue.

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