Skip to content

Commit

Permalink
When loading schema cache, also set factory cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Sep 15, 2017
1 parent 4361772 commit b2f71d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions guillotina/content.py
Expand Up @@ -113,6 +113,7 @@ def load_cached_schema():
for x in getUtilitiesFor(IResourceFactory):
factory = x[1]
if factory.type_name not in SCHEMA_CACHE:
FACTORY_CACHE[factory.type_name] = factory
behaviors_registrations = []
for iface in factory.behaviors or ():
if Interface.providedBy(iface):
Expand Down

0 comments on commit b2f71d1

Please sign in to comment.