Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Cache View <cake:nocache> dose not work
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon  
View profile  
 More options Oct 8, 7:31 am
From: Simon <simon_d...@hotmail.com>
Date: Wed, 7 Oct 2009 14:31:06 -0700 (PDT)
Local: Thurs, Oct 8 2009 7:31 am
Subject: Cache View <cake:nocache> dose not work
i'm having problems with cache i have post controller which i enable
it to cache the view action only

but some how it cache the element that locate at default layout even
if i put <cake:nocache></cake:nocache>
the result is same

any idea


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miles J  
View profile  
 More options Oct 8, 8:59 am
From: Miles J <mileswjohn...@gmail.com>
Date: Wed, 7 Oct 2009 15:59:52 -0700 (PDT)
Local: Thurs, Oct 8 2009 8:59 am
Subject: Re: Cache View <cake:nocache> dose not work
Can we see some code? Also if its an element, wouldn't it always be
the same? Or are you passing dynamic data.

On Oct 7, 2:31 pm, Simon <simon_d...@hotmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Oct 9, 12:44 am
From: Simon <simon_d...@hotmail.com>
Date: Thu, 8 Oct 2009 07:44:33 -0700 (PDT)
Local: Fri, Oct 9 2009 12:44 am
Subject: Re: Cache View <cake:nocache> dose not work
well in that element it has the login user info which you dont wanna
cache
here is what i have in post controller

 var $helpers = array('Cache');

in my view  action i have this

$this->cacheAction = '1 hour';

then in my default layout i have this element which i put the
<cake:nocache>
<cake:nocache>
<?php echo $this->element('logininfo'); ?>
<cake:nocache>
then i get errorr which i can't see in the browser i did view source

this is the ouput of error

<pre class="cake-debug">
<a href='javascript:void(0);' onclick='document.getElementById
("CakeStackTrace1").style.display = (document.getElementById
("CakeStackTrace1").style.display == "none" ? "" : "none")'><b>Notice</
b> (8)</a>: Undefined property: stdClass::$model [<b>CORE\cake\libs
\view\helper.php</b>, line <b>333</b>]
</pre>
<div id="CakeStackTrace1" class="cake-stack-trace" style="display:
none;"><a href='javascript:void(0);' onclick='document.getElementById
("CakeErrorCode1").style.display = (document.getElementById
("CakeErrorCode1").style.display == "none" ? "" : "none")'>Code</a> |
<a href='javascript:void(0);' onclick='document.getElementById
("CakeErrorContext1").style.display = (document.getElementById
("CakeErrorContext1").style.display == "none" ? "" : "none")'>Context</
a><pre id="CakeErrorContext1" class="cake-context" style="display:
none;">$entity  =       "User."
$setScope       =       true
$view   =       stdClass
stdClass::$modelScope = false</pre><div id="CakeErrorCode1"
class="cake-code-dump" style="display: none;"><pre><code><span
style="color:
#000000">        }</span></
code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color:
#000000">        
$model = $view->model;</span></code></span>
</pre></div><pre>Helper::setEntity() - CORE\cake\libs\view\helper.php,
line 333
FormHelper::create() - CORE\cake\libs\view\helpers\form.php, line 122
include - APP\views\elements\slide.ctp, line 9
View::_render() - CORE\cake\libs\view\view.php, line 654
View::element() - CORE\cake\libs\view\view.php, line 339
include - APP\tmp\cache\views\new_recipes_category_Basics.php, line
121
View::renderCache() - CORE\cake\libs\view\view.php, line 483
Dispatcher::cached() - CORE\cake\dispatcher.php, line 718
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 130
[main] - APP\webroot\index.php, line 90</pre></div>
<pre class="cake-debug">
<a href='javascript:void(0);' onclick='document.getElementById
("CakeStackTrace2").style.display = (document.getElementById
("CakeStackTrace2").style.display == "none" ? "" : "none")'><b>Notice</
b> (8)</a>: Undefined property: stdClass::$association [<b>CORE\cake
\libs\view\helper.php</b>, line <b>366</b>]
</pre>
<div id="CakeStackTrace2" class="cake-stack-trace" style="display:
none;"><a href='javascript:void(0);' onclick='document.getElementById
("CakeErrorCode2").style.display = (document.getElementById
("CakeErrorCode2").style.display == "none" ? "" : "none")'>Code</a> |
<a href='javascript:void(0);' onclick='document.getElementById
("CakeErrorContext2").style.display = (document.getElementById
("CakeErrorContext2").style.display == "none" ? "" : "none")'>Context</
a><pre id="CakeErrorContext2" class="cake-context" style="display:
none;">$entity  =       "User."
$setScope       =       true
$view   =       stdClass
stdClass::$modelScope = false
$model  =       null
$hasField       =       false
$sameScope      =       true
$parts  =       array(
        "User"
)</pre><div id="CakeErrorCode2" class="cake-code-dump" style="display:
none;"><pre><code><span style="color:
#000000">        }</span></
code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color:
#000000">        if (!
$view->association && $parts[0] == 
$view->field && $view->field != 
$view->model) {</span></code></span>
</pre></div><pre>Helper::setEntity() - CORE\cake\libs\view\helper.php,
line 366
FormHelper::create() - CORE\cake\libs\view\helpers\form.php, line 122
include - APP\views\elements\slide.ctp, line 9
View::_render() - CORE\cake\libs\view\view.php, line 654
View::element() - CORE\cake\libs\view\view.php, line 339
include - APP\tmp\cache\views\new_recipes_category_Basics.php, line
121
View::renderCache() - CORE\cake\libs\view\view.php, line 483
Dispatcher::cached() - CORE\cake\dispatcher.php, line 718
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 130
[main] - APP\webroot\index.php, line 90</pre></div>
<pre class="cake-debug">
<a href='javascript:void(0);' onclick='document.getElementById
("CakeStackTrace3").style.display = (document.getElementById
("CakeStackTrace3").style.display == "none" ? "" : "none")'><b>Notice</
b> (8)</a>: Undefined property: stdClass::$field [<b>CORE\cake\libs
\view\helper.php</b>, line <b>366</b>]
</pre>
<div id="CakeStackTrace3" class="cake-stack-trace" style="display:
none;"><a href='javascript:void(0);' onclick='document.getElementById
("CakeErrorCode3").style.display = (document.getElementById
("CakeErrorCode3").style.display == "none" ? "" : "none")'>Code</a> |
<a href='javascript:void(0);' onclick='document.getElementById
("CakeErrorContext3").style.display = (document.getElementById
("CakeErrorContext3").style.display == "none" ? "" : "none")'>Context</
a><pre id="CakeErrorContext3" class="cake-context" style="display:
none;">$entity  =       "User."
$setScope       =       true
$view   =       stdClass
stdClass::$modelScope = false
$model  =       null
$hasField       =       false
$sameScope      =       true
$parts  =       array(
        "User"
)</pre><div id="CakeErrorCode3" class="cake-code-dump" style="display:
none;"><pre><code><span style="color:
#000000">        }</span></
code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color:
#000000">        if (!
$view->association && $parts[0] == 
$view->field && $view->field != 
$view->model) {</span></code></span>
</pre></div><pre>Helper::setEntity() - CORE\cake\libs\view\helper.php,
line 366
FormHelper::create() - CORE\cake\libs\view\helpers\form.php, line 122
include - APP\views\elements\slide.ctp, line 9
View::_render() - CORE\cake\libs\view\view.php, line 654
View::element() - CORE\cake\libs\view\view.php, line 339
include - APP\tmp\cache\views\new_recipes_category_Basics.php, line
121
View::renderCache() - CORE\cake\libs\view\view.php, line 483
Dispatcher::cached() - CORE\cake\dispatcher.php, line 718
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 130
[main] - APP\webroot\index.php, line 90</pre></div>
<pre class="cake-debug">
<a href='javascript:void(0);' onclick='document.getElementById
("CakeStackTrace4").style.display = (document.getElementById
("CakeStackTrace4").style.display == "none" ? "" : "none")'><b>Notice</
b> (8)</a>: Trying to get property of non-object [<b>CORE\cake\libs
\view\helpers\form.php</b>, line <b>185</b>]
</pre>
<div id="CakeStackTrace4" class="cake-stack-trace" style="display:
none;"><a href='javascript:void(0);' onclick='document.getElementById
("CakeErrorCode4").style.display = (document.getElementById
("CakeErrorCode4").style.display == "none" ? "" : "none")'>Code</a> |
<a href='javascript:void(0);' onclick='document.getElementById
("CakeErrorContext4").style.display = (document.getElementById
("CakeErrorContext4").style.display == "none" ? "" : "none")'>Context</
a><pre id="CakeErrorContext4" class="cake-context" style="display:
none;">$model   =       "User"
$options        =       array(
        "type" => "post",
        "action" => "login",
        "url" => array(
        "controller" => "users"
),
        "default" => true
)
$defaultModel   =       null
$view   =       false
$models =       array()
$append =       ""
$id     =       false
$created        =       false
$data   =       array(
        "fields" => array(),
        "key" => "id",
        "validates" => array()
)
$recordExists   =       false</pre><div id="CakeErrorCode4" class="cake-code-
dump" style="display: none;"><pre><code><span style="color:
#000000">            
$actionDefaults = array(</span></code>
<code><span style="color:
#000000">                'plugin' => 
$this->plugin,</span></code>
<span class="code-highlight"><code><span style="color:
#000000">                'controller' => 
$view->viewPath,</span></code></span>
</pre></div><pre>FormHelper::create() - CORE\cake\libs\view\helpers
\form.php, line 185
include - APP\views\elements\slide.ctp, line 9
View::_render() - CORE\cake\libs\view\view.php, line 654
View::element() - CORE\cake\libs\view\view.php, line 339
include - APP\tmp\cache\views\new_recipes_category_Basics.php, line
121
View::renderCache() - CORE\cake\libs\view\view.php, line 483
Dispatcher::cached() - CORE\cake\dispatcher.php, line 718
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 130
[main] - APP\webroot\index.php, line 90</pre></div><br />
<b>Fatal error</b>:  Call to a member function entity() on a non-
object in <b>C:\xampp\htdocs\cake\cake\libs\view\helper.php</b> on
line <b>321</b><br />


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miles J  
View profile  
 More options Oct 9, 2:17 am
From: Miles J <mileswjohn...@gmail.com>
Date: Thu, 8 Oct 2009 09:17:50 -0700 (PDT)
Local: Fri, Oct 9 2009 2:17 am
Subject: Re: Cache View <cake:nocache> dose not work
Do you get an error when we remove the cache helper?

Also the code should be:

<cake:nocache>
<?php echo $this->element('logininfo'); ?>
</cake:nocache>

On Oct 8, 7:44 am, Simon <simon_d...@hotmail.com> wrote:

...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Oct 9, 2:26 am
From: Simon <simon_d...@hotmail.com>
Date: Thu, 8 Oct 2009 09:26:31 -0700 (PDT)
Local: Fri, Oct 9 2009 2:26 am
Subject: Re: Cache View <cake:nocache> dose not work
haven't tried to remove the cache helper would  that make any
difference ?

sorry i just wrote the <cake:nocache> twice in this post  but the code
is like this see below in my layout

<cake:nocache>
<?php echo $this->element('logininfo'); ?>
</cake:nocache>

On Oct 8, 9:17 am, Miles J <mileswjohn...@gmail.com> wrote:

...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miles J  
View profile  
 More options Oct 9, 2:29 am
From: Miles J <mileswjohn...@gmail.com>
Date: Thu, 8 Oct 2009 09:29:40 -0700 (PDT)
Local: Fri, Oct 9 2009 2:29 am
Subject: Re: Cache View <cake:nocache> dose not work
Try playing the nocache tags in the element itself. You can also pass
an option to the element of cache = false.

<?php echo $this->element('logininfo', array('cache' => false)); ?>

On Oct 8, 9:26 am, Simon <simon_d...@hotmail.com> wrote:

...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Oct 9, 2:45 am
From: Simon <simon_d...@hotmail.com>
Date: Thu, 8 Oct 2009 09:45:12 -0700 (PDT)
Local: Fri, Oct 9 2009 2:45 am
Subject: Re: Cache View <cake:nocache> dose not work
i tired both
<?php echo $this->element('logininfo', array('cache' => false)); ?>
=> this dosen't work at all

in the element i tired <cake:nocache></cake:nocache> which i see no
debug error even though i set the debug 2
but when i see the view source page i get the errorr that i posted
above
thats wired problem that i cant figure out
thank you

On Oct 8, 9:29 am, Miles J <mileswjohn...@gmail.com> wrote:

...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco  
View profile  
 More options Oct 9, 7:56 pm
From: Marco <marco.perg...@gmail.com>
Date: Fri, 9 Oct 2009 02:56:58 -0700 (PDT)
Local: Fri, Oct 9 2009 7:56 pm
Subject: Re: Cache View <cake:nocache> dose not work
Did you set Configure::Cache.check to true in core.php?

Marco

On Oct 8, 1:45 pm, Simon <simon_d...@hotmail.com> wrote:

...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Oct 10, 12:18 am
From: Simon <simon_d...@hotmail.com>
Date: Fri, 9 Oct 2009 07:18:19 -0700 (PDT)
Local: Sat, Oct 10 2009 12:18 am
Subject: Re: Cache View <cake:nocache> dose not work
yes i did that too

On Oct 9, 2:56 am, Marco <marco.perg...@gmail.com> wrote:

...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hansi meier  
View profile  
 More options Nov 4, 12:42 am
From: hansi meier <manuel.lais...@aon.at>
Date: Tue, 3 Nov 2009 05:42:24 -0800 (PST)
Local: Wed, Nov 4 2009 12:42 am
Subject: Re: Cache View <cake:nocache> dose not work
same problem!
cakephp cache form.. (userlogin)
how can i use cache with a cakeform?

On 9 Okt., 15:18, Simon <simon_d...@hotmail.com> wrote:

...

read more »


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nurvzy  
View profile  
 More options Nov 5, 8:13 am
From: nurvzy <nur...@gmail.com>
Date: Wed, 4 Nov 2009 13:13:11 -0800 (PST)
Local: Thurs, Nov 5 2009 8:13 am
Subject: Re: Cache View <cake:nocache> dose not work
APP\views\elements\slide.ctp, line 9
----------------
What's on line 9 of slide.ctp?

Follow the backtrace and start commenting out things until you get it
narrowed down what is breaking your cache.

On Nov 3, 6:42 am, hansi meier <manuel.lais...@aon.at> wrote:

...

read more »


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google