On Wed, Mar 14, 2012 at 11:12 AM, Kurt Payne <span dir="ltr"><<a href="mailto:kpayne%2Bwordpress%2Btests@gmail.com">kpayne+wordpress+tests@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Nacin,<br>
<br>
This doesn't work for me. I started by using a static var. I added<br>
some debug output at the top of the function and the cache was not<br>
behaving as desired.<br>
<br>
If I had to conjecture about what was going on .... the<br>
"isTracTicketClosed" function is part of a class which gets extended.<br>
Any static scope is associated with the instantiated class name as<br>
well as the method name.<br>
<br>
For example, TestSanitizeUser::isTracTicketClosed vs.<br>
TestSanitizeTitleWithDashes::isTracTicketClosed<br>
<br>
Can you reproduce?<br></blockquote><div><br></div><div>Interesting. In that case, it should probably become a protected static class variable. </div></div>