#919 open
Peter Williams

dryml renderers are cached with potentially non-unique key

Reported by Peter Williams | February 16th, 2011 @ 04:31 PM | in Hobo 1.0X

i have a application where multiple templates have the same path and name relative to the view paths. The application adjusts the view paths at the beginning of the request based on the requesting user so that the appropriate templates are picked up.

However, in Dryml#page_renderer the renderer gets cached based on the "page" which is, usually, the the path and name of the template relative to the view paths. This means that these template can collide in the cache which results in the wrong template being rendered.

I found this in 1.0.2, but code is still the same in master.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Tags

Pages