Re: cache key not working

2011-01-27 Thread rkaiser

This is actually caused by a bug in the PCRE library on Centos / Red Hat. 
See this 
http://blog.echothis.com/2011/01/27/fixing-cakephp-1-3s-cache-key-error-on-red-hat-and-centos/
blog post  for how to fix it.
-- 
View this message in context: 
http://cakephp.19694.n2.nabble.com/cache-key-not-working-tp4960573p5967020.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cache key not working

2010-04-25 Thread Todd McGrath
Ok, and one more thing-

It works fine on my dev box -- OS X with MAMP.  The problem only
appears in public test server.  CentOS 5, Apache 2, PHP 5

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: cache key not working

2010-04-25 Thread Todd McGrath
More info-

It's 1.3 RC4 I believe.  Not stable congratulations by the way!

Adding to original description, because I'm not sure if it matters,
but the element call is in a for loop:

foreach ($section['AssessmentQuestion'] as $question) {
  echo $this->element('question', array("questionId" =>
$question['id'], "cache" => array('time'=> "+7 days",'key'=>'question'.
$question['id'])));
  // works echo $this->element('question', array("questionId" =>
$question['id']));
}



On Apr 25, 8:18 pm, Todd McGrath  wrote:
> Hi,
>
> See anything wrong with this:
> echo $this->element('question', array('questionId' => $question['id'],
> 'cache' => array('time'=> '+2 hours','key'=>$question['id'].'--
> question_id')));
>
> I'm getting the same result each time, but I know the $[question['id']
> is different.
>
> In other words, it's like the cache key is not being used.
>
> Using Cake 1.3 RC 4.
>
> If I put all the cache settings in this element call, everything works
> as expected.  But, I have a couple of requestAction in the element, so
> I'm hoping to get this working.  I've had it working fine in Cake 1.2
>
> Thoughts?  Ideas?
>
> Todd
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en