On Sun, Apr 17, 2011 at 9:19 PM, Brian Sweeney wrote:
>
> Speaking of expires headers ... if a view is cached does cake return an
> expires header for it? The content does have an expiration so it seems like
> this would be plausible.
No. At least, not that I'm aware of. Look at View::renderCache
On Sat, Apr 16, 2011 at 1:47 PM, cricket wrote:
> On Fri, Apr 15, 2011 at 3:37 PM, Brian Sweeney
> wrote:
> > On Fri, Apr 15, 2011 at 2:47 PM, cricket wrote:
> >>
> >> What the heck is this?!
> >> echo ""; ?>
> >
> > Oh, and I just wanted to say that I was pretty sure this little snippet
> > wo
On Fri, Apr 15, 2011 at 3:37 PM, Brian Sweeney wrote:
> On Fri, Apr 15, 2011 at 2:47 PM, cricket wrote:
>>
>> What the heck is this?!
>> echo ""; ?>
>
> Oh, and I just wanted to say that I was pretty sure this little snippet
> would get that kind of reaction. Nice to know that you care enough to
On Fri, Apr 15, 2011 at 2:47 PM, cricket wrote:
> What the heck is this?!
> echo ""; ?>
>
Oh, and I just wanted to say that I was pretty sure this little snippet
would get that kind of reaction. Nice to know that you care enough to point
out the insanity of it all ;)
--
Our newest site for the
On Fri, Apr 15, 2011 at 2:47 PM, cricket wrote:
> > But yes, this is how I'm passing variables to
> > the view. Except in some of the non-cached code where I'm using
> > requestAction() to get data I need.
>
> But requestAction() is a horrible performance hog so hopefully you'll
> get all of thi
On Fri, Apr 15, 2011 at 11:38 AM, Brian Sweeney wrote:
> On Thu, Apr 14, 2011 at 2:49 PM, cricket wrote:
>
>> function startup(&Controller)
>> {
>> $this->Controller = $Controller;
>> }
>
> I don't have anything like the startup function (I assume that's part of the
> default controller class?
On Thu, Apr 14, 2011 at 2:49 PM, cricket wrote:
> On Thu, Apr 14, 2011 at 11:00 AM, Brian Sweeney
> wrote:
> > I think even though some of the content is state-sensitive the page could
> > still benefit from view caching. It does present some difficulties,
> though,
> > which is why I'm here.
>
On Thu, Apr 14, 2011 at 11:00 AM, Brian Sweeney wrote:
> I think even though some of the content is state-sensitive the page could
> still benefit from view caching. It does present some difficulties, though,
> which is why I'm here.
>
> But even if I take out the state-sensitive aspects of the pa
On Thu, Apr 14, 2011 at 2:11 AM, cricket wrote:
> On Wed, Apr 13, 2011 at 11:37 PM, Brian Sweeney
> wrote:
>
> > I have a view that's fairly computationally expensive (lots of
> table-formatted data).
> > To speed up the page load I'm trying to use view caching.
>
> Cached views bypass the cont
On Wed, Apr 13, 2011 at 11:37 PM, Brian Sweeney wrote:
> Thanks for pondering the issue a bit more. If there's any details you think
> might help let me know. I didn't want to bog down the original post with too
> much detail, hoping somebody might have run into the problem in the past.
> But I do
Thanks for pondering the issue a bit more. If there's any details you think
might help let me know. I didn't want to bog down the original post with too
much detail, hoping somebody might have run into the problem in the past.
But I don't mind detailing what's going on and how I'm trying to work ar
On Wed, Apr 13, 2011 at 9:30 PM, BrianS wrote:
> On Wednesday, April 13, 2011 8:58:32 PM UTC-4, cricket wrote:
>>
>> On Wed, Apr 13, 2011 at 8:57 PM, BrianS wrote:
>> > Except that it doesn't help me at all :(
>>
>> And that reply doesn't help us help you. More info please.
>
> I realize this, an
Thanks for the thoughts. This is what I was planning to try tomorrow.
There's a lot going on in the controller so I figure caching that much would
be better than nothing. I'd still like to get the view cached at some point,
but with all the problems I've been having I'm not sure I'm going to get
th
In case of expensive Db request or computation, to me the best is to
cache the Data needed to your view or element instead of the view
itself. If the cache is expired I do not hesitate to make a
requestAction (devil word), but a requestAction with results being
cached every X few minutes can be acc
On Wednesday, April 13, 2011 8:58:32 PM UTC-4, cricket wrote:
>
> On Wed, Apr 13, 2011 at 8:57 PM, BrianS wrote:
> > Except that it doesn't help me at all :(
>
> And that reply doesn't help us help you. More info please.
>
I realize this, and I was in the process of a response to your post. I just
On Wednesday, April 13, 2011 7:40:45 PM UTC-4, cricket wrote:
>
>
> for ($i = 0; $i < 10; $i++) {
> echo "foo";
> }
> ?>
>
>
Thanks, but this doesn't help much. As I said, the page I'm generating is
fairly expensive computationally. Rather than get into the details of the
view structure and wh
On Wed, Apr 13, 2011 at 8:57 PM, BrianS wrote:
> Except that it doesn't help me at all :(
And that reply doesn't help us help you. More info please.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.
Except that it doesn't help me at all :(
On Wednesday, April 13, 2011 8:06:26 PM UTC-4, euromark wrote:
>
> ;) thats a good one
>
--
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
;) thats a good one
On 14 Apr., 01:40, cricket wrote:
> On Wed, Apr 13, 2011 at 4:37 PM, BrianS wrote:
> > I have a view that's fairly computationally expensive (lots of
> > table-formatted data). To speed up the page load I'm trying to use view
> > caching. Works great, except when I try to "no
On Wed, Apr 13, 2011 at 4:37 PM, BrianS wrote:
> I have a view that's fairly computationally expensive (lots of
> table-formatted data). To speed up the page load I'm trying to use view
> caching. Works great, except when I try to "nocache" content that's inside a
> loop (foreach in this instance)
20 matches
Mail list logo