Skip to content

Commit

Permalink
Merge pull request #524 from plotly/remove-registry
Browse files Browse the repository at this point in the history
Remove ComponentRegistry dist cache.
  • Loading branch information
T4rk1n authored Jan 23, 2019
2 parents f15e085 + e2b1f52 commit 8e62b13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## [UNRELEASED] - 2019-01-23
## [0.35.3] - 2019-01-23
## Fixed
- Asset blueprint takes routes prefix into it's static path. [#547](https://github.com/plotly/dash/pull/547)
- Asset url path no longer strip routes from requests. [#547](https://github.com/plotly/dash/pull/547)
- Remove print statement from PreventUpdate error handler. [#548](https://github.com/plotly/dash/pull/548)
- Removed ComponentRegistry dist cache [#524](https://github.com/plotly/dash/pull/524)

## Changed
- `assets_folder` argument now default to 'assets' [#547](https://github.com/plotly/dash/pull/547)
Expand Down
8 changes: 1 addition & 7 deletions dash/development/base_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,10 @@ class ComponentRegistry:
"""Holds a registry of the namespaces used by components."""

registry = set()
__dist_cache = {}

@classmethod
def get_resources(cls, resource_name):
cached = cls.__dist_cache.get(resource_name)

if cached:
return cached

cls.__dist_cache[resource_name] = resources = []
resources = []

for module_name in cls.registry:
module = sys.modules[module_name]
Expand Down
2 changes: 1 addition & 1 deletion dash/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.35.2'
__version__ = '0.35.3'

0 comments on commit 8e62b13

Please sign in to comment.