Page 1 of 1

[SOLVED] caching UDTs (or not?)

Posted: Mon Aug 13, 2012 1:37 am
by rotezecke
First: nothing's really broken, just confusion.

Since 1.11 we can cache calls to UDTs if set so in
Site Admin -> Global Settings -> Smarty Settings
Which i did. I expected one of my UDTs to misbehave (the UDT contains an sql select query that returns random results). Hence I wanted to call it with nocache. however, even the cached call returns random results, which now raises doubts whether caching UDTs is actually working.
I read the changelog in
Site Admin -> System Maintenance ->Changelog
and it says:
UDT's are never cachable.

I admit i dont really get the details of the whole caching, but - to me - it sounds like you can enable a setting that by design will never work?

CMSMS 1.11
CMSMailer 5.2.1
FileManager 1.4.0
MenuManager 1.8.2
ModuleManager 1.5.5
News 2.12.7
Search 1.7.6
TinyMCE 2.9.11
CGSimpleSmarty 1.5.2
CGExtensions 1.30
CGBlog 1.9.8
CGFeedback 1.5.7
Captcha 0.4.5
FormBuilder 0.7.3
IE6Warning 1.03
Showtime 3.2
CMSPrinting 1.0.2

Server: Linux Debian Lenny 2.6.26-1-686 kernel
apache 2.2.9-10
mysql 5.0.51a-24
php 5.2.6-1

Re: caching UDTs (or not?)

Posted: Mon Aug 13, 2012 3:39 am
by calguy1000
There was a small typo in the preference name used in the expression to indicate whether UDT's were cachable.

Thanks.

It's fixed in svn and will be released with 1.11.1