inveniosoftware-attic / invenio-ext

Invenio module that provides integration with Flask extensions.
GNU General Public License v2.0
0 stars 12 forks source link

legacy: remove precached values for logged in user #3

Closed hachreak closed 8 years ago

hachreak commented 9 years ago

Can we remove the precached values?

I found a message compatibility layer only. They are still necessary or we can simply remove them?

I found they are used here:

564: auth_types = user_info.get('precached_allowed_deposition_types', set())

158: return type_ in current_user.get('precached_allowed_deposition_types', [])

61: current_user.get('precached_permitted_restricted_collections', []),

111: 'precached_permitted_restricted_collections', [])

20:<pre>{{ tfn_get_fieldvalues_alephseq_like(recid, [], current_user.get('precached_canseehiddenmarctags', False))|safe }}</pre>

1:{{ tfn_get_fieldvalues_alephseq_like(recid, [], current_user.get('precached_canseehiddenmarctags', False))|safe }}

@jirikuncar

jirikuncar commented 9 years ago

@hachreak in general they are still required by they should be populated using signals (see https://github.com/inveniosoftware/invenio/issues/3438).

jirikuncar commented 8 years ago

Caching is happening on per-package basis (e.g. Invenio-Access).