-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SchemaCache is not updated across multiple Plone instances #81
Comments
So, the schema cache is not invalidated on the other client? |
@jensens Indeed. I did some digging and now I'm not that sure that the issue is generated by SCHEMA_CACHE. |
You may write a simple view that invalidates the schema cache - and if it works afterwards it is the cache ;) |
I commented the caching part in volatile and the issue is still there. That's why I suspect the issue is in EditableSchema Thus, when you add a new field, it is directly added in the schema I still don't have the whole picture, thus I may be wrong on that. |
ftiModified is supposed to re-sync schema, but:
We need to re-sync schema from model_source on get (based on fti modification time, or something). See also https://github.com/plone/plone.dexterity/blob/master/plone/dexterity/schema.py#L409-L410. This code is executed only once per ZEO client, when you first access that schema. |
Yap. Removing https://github.com/plone/plone.dexterity/blob/master/plone/dexterity/schema.py#L409-L415 solved the issue. My proposal is to also check Suggestions are welcome. |
How to reproduce:
Plone version: 5.2.2
See also: https://community.plone.org/t/dynamic-schema-is-not-synced-across-zeo-clients/12923
The text was updated successfully, but these errors were encountered: