You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
The NavigationItemPlugin and AccountsNavigationItemPlugin content plugins currently cache their output.
This is a problem because the rendered output will not be updated for some situations, for example if you change the URL location of a Page referenced by a NavigationItem the old URL will continue being rendered until you clear the cache.
The brute-force fix is to add the cache_output = False attribute to these plugins.
A better fix, and one we should start using in general, is to figure out how to generate a sensible cache key and override the get_output_cache_key() method of ContentPlugin so that we can benefit from caching but have that cache invalidated when appropriate.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
NavigationItemPlugin
andAccountsNavigationItemPlugin
content plugins currently cache their output.This is a problem because the rendered output will not be updated for some situations, for example if you change the URL location of a
Page
referenced by aNavigationItem
the old URL will continue being rendered until you clear the cache.The brute-force fix is to add the
cache_output = False
attribute to these plugins.A better fix, and one we should start using in general, is to figure out how to generate a sensible cache key and override the
get_output_cache_key()
method ofContentPlugin
so that we can benefit from caching but have that cache invalidated when appropriate.The text was updated successfully, but these errors were encountered: