On Fri, Jan 10, 2014 at 6:51 AM, Dave Howorth <dhowo...@mrc-lmb.cam.ac.uk>wrote:

> Solved it ...
>

Cool.

>
> - one module used by my main program was making its own connection to
> the database (for historical reasons). Apparently that changes the
> mysql_enable_utf8 setting on my main connection. I'm sure DBIC has a
> good reason for that which I ought to know, but it sure wasn't something
> I was expecting. Praise be to the debugger for finding that.
>

It would not be DBIC, but DBD::mysql.  I'd be surprised if that wasn't a
per-connection setting.



>
> - and of course changing encoding options for templates doesn't actually
> have any effect unless you actually subsequently edit the template,
> thanks to the wonders of TT's compilation cache. It was only because I
> updated the copyright message from 2013 to 2014 that I happened to fix
> that problem; just lucky it happened at this time of year, I guess.
>

Good catch.   In my dev config I have this:


# When debugging
View::TT:
    # Disable caching during development
    STAT_TTL: 0
    COMPILE_DIR:


and I used to purge the existing cache at production push.   That would be
worth looking into more.

-- 
Bill Moseley
mose...@hank.org
_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to