Commit 86d3aa3d authored by Vincent Pelletier's avatar Vincent Pelletier

Warn about bad volatile usage.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17041 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e27c6c6d
......@@ -1123,6 +1123,9 @@ class Catalog( Folder,
return self.sql_search_result_keys
def _getCatalogSchema(self, table=None):
# XXX: Using a volatile as a cache makes it impossible to flush
# consistently on all connections containing the volatile. Another
# caching scheme must be used here.
catalog_schema_dict = getattr(aq_base(self), '_v_catalog_schema_dict', {})
if table not in catalog_schema_dict:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment