After upgrading a Plone 5.1.6 → 5.2.1 site, my server logs are showing numerous:
Could not find value adapter for ETag component resourceRegistries
Any ideas on how to mitigate this?
After upgrading a Plone 5.1.6 → 5.2.1 site, my server logs are showing numerous:
Could not find value adapter for ETag component resourceRegistries
Any ideas on how to mitigate this?
Perhaps this change in plone.app.caching?
Ah, perfect. Thanks for that tip @mtrebron
I added an upgrade step [1] to my "policy package" and got rid of the excess logging. Although it would've been nice if the Plone upgrade itself took care of that. Perhaps that's a bug?
Anyway, the log files are a bit more manageable now
[1] Snippet:
def dropCachedResourceRegistries(setupTool, logger=None):
if logger is None: logger = logging.getLogger(__name__)
registry = getUtility(IRegistry)
for key in (
'plone.app.caching.weakCaching.plone.content.folderView.etags',
'plone.app.caching.weakCaching.plone.content.itemView.etags',
):
try:
current = list(registry[key])
logger.info('Removing resourceRegistries from %s', key)
current.remove('resourceRegistries')
registry[key] = tuple(current)
except ValueError:
logger.info('resourceRegistries not found in %s, skipping', key)
pass