Skip Menu |

This queue is for tickets about the Template-Simple CPAN distribution.

Report information
The Basics
Id: 126284
Status: new
Priority: 0/
Queue: Template-Simple

Owner: Nobody in particular
Requestors: REMORSE [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Cache is not created properly
Date: Thu, 16 Aug 2018 19:11:01 +0000
To: "bug-Template-Simple [...]" <bug-Template-Simple [...]>
From: "Morse, Richard E.,MGH" <REMORSE [...]>
Download (untitled) / with headers
text/plain 1.1k
Hi! If you don’t pass any templates into the constructor (and thus, line 101 `$self->add_templates(…)` doesn’t actually add any templates), the cache isn’t correctly created. Thus, any templates that are supposed to retrieved via `_find_template()` or `_get_template()` don’t get added to the cache, and thus get re-read every time. An easy fix: diff --git a/lib/Template/ b/lib/Template/ index 92d79b4..e6a2297 100644 --- a/lib/Template/ +++ b/lib/Template/ @@ -98,6 +98,7 @@ sub new { # load in any templates + $self->{tmpl_cache} = {} ; $self->add_templates( $opts{templates} ) ; return $self ; The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to