Skip to content

v1.0.2.9 — signed-in visitors out of the shared view cache

Choose a tag to compare

@se7enxweb se7enxweb released this 03 Dec 02:07
· 3 commits to main since this release

The kernel view patch: signed-in visitors and cache_ttl

The view cache key leaves out the user's roles (ViewCacheTweaks ignore_userroles), so a page rendered for an editor,
with its edit and remove buttons, could be served to anonymous visitors from the shared Valkey view cache.
doc/kernel_content_view.patch now keeps signed-in visitors out of that cache: they neither read nor write it and
render live. A view whose template sets cache_ttl=0 (the view result's no_cache flag) is never stored, and the
generation lock it took is released (purge()), so waiting requests render it themselves instead of waiting for the
lock to expire. A positive cache_ttl is used as the lifetime instead of the fixed 3600 seconds.

Kernels patched by hand need the new patch applied. The Exponential 6.0.15 kernel line carries the same logic in
kernel/private/classes/views/content/view.php since se7enxweb/exponential 6fc5e24e2f.

ezinfo.php and extension.xml carry the version 1.0.2.9.

Commits

  • 22fa063 Updated: The kernel view patch keeps signed-in visitors out of the shared view cache and never stores a view with cache_ttl=0
  • 310ee1f Updated: The kernel view patch reads cache_ttl=0 from the view result's no_cache flag
  • 63344a1 Updated: Version 1.0.2.9