On Wed, Apr 13, 2011 at 11:37 PM, Brian Sweeney <[email protected]> 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 don't mind detailing what's going on and how I'm trying to work around > it.
Been bashing my head for hours on some javascript textrange voodoo, actually. > 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 controller[1], so if your content (the html) depends on state-sensitive data it may not be your answer. Like francky said, you probably could be using elements with caching disabled, or even given alternative cache options than the action itself has. > A problem which appears to be a bug to me. It's a bug in your view. To Cake and PHP, it's a gotcha. > which includes user authentication and user-specific inline content I'm > getting > varied results. You can access the Session from an (uncached) element. > I'm also hacking around the inability to use component-instantiated > components by echoing out some PHP code. Components are for Controllers and other Components, not Views. Use a Helper. > If anyone's interested in more details about what problems I'm having and > how I'm attempting to work around them I'd be more than happy to share a less > simplistic example. A more realistic example would help in coming up with a solution. You don't need to paste the entire view, just broad strokes or a snippet or two. [1] But see here: http://nuts-and-bolts-of-cakephp.com/2011/02/05/make-your-cakephp-app-ridiculously-faster-with-view-caching/ -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
