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
-
Peter Williams February 16th, 2011 @ 04:55 PM
Fix available at http://github.com/pezra/hobo branch cache-renderers-keyed-on-abs-filename. I just uses the absolute path to the template as the renderer cache key to avoid any similar templates from colliding in the cache.
-
Peter Williams February 16th, 2011 @ 04:56 PM
- Tag set to defect
-
Domizio Demichelis March 27th, 2011 @ 08:09 PM
- State changed from new to open
- Milestone set to Hobo 1.0X
- Assigned user set to Bryan Larsen
- Milestone order changed from 197951 to 0
1.3 is not affected by this bug. When I refactoried the Dryml stuff, I keyed the template cache with the template.identifier that rails provides, which indeed is the template path.
-
ellapurnellrt (at gmail) August 30th, 2023 @ 09:33 AM
With each installment, papa's games introduce players to a new culinary adventure, where they can explore the art of cooking, serving customers, and managing restaurants.
-
starjackioaz October 13th, 2023 @ 10:25 AM
After perusing your most recent responses and experimenting with the lol beans game, I believe I now have a fundamental understanding of how it operates. I look forward to conducting additional tests to determine how I can make everything function.Many thanks to each of you!
-
slopegame1424 March 31st, 2024 @ 11:29 PM
"slope game" offers thrilling challenges as players conquer gravity in this adrenaline-pumping adventure. With captivating graphics and addictive gameplay, "slope game" promises an unforgettable gaming experience, perfect for players of all skill levels. Join the excitement today and dive into high-speed gaming at its finest!
-
tellagraph April 16th, 2024 @ 09:42 PM
You can delete cache then make another try. What Are Sports Bars Lined With
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป