Cannot cache component #305
-
I noticed that component gets instantiated each time it processes a request. Then I found this error in the console. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@mailantwi Hello! Unicorn caches components so it can skip instantiating them on every request and only update the fields that change. There should be a field in the error message that can give a clue why the component cannot be cached. Most Python primitives, Django models, etc should be pickleable, but if you can give me more information from the error message I might be able to figure out what is going on. |
Beta Was this translation helpful? Give feedback.
@mailantwi Hello! Unicorn caches components so it can skip instantiating them on every request and only update the fields that change. There should be a field in the error message that can give a clue why the component cannot be cached. Most Python primitives, Django models, etc should be pickleable, but if you can give me more information from the error message I might be able to figure out what is going on.