Hi Wes, I just implemented it on the site I was developing (after turning off the standard Radiant cache for pages). Wow. All I can say is wow. I cached the menus and content and then I could use ruby code to control the logged-in/out status of the user.
You sir, just made my Christmas list :) In case anyone else ever needs to figure this out, here is what you do: 1. Turn off rails caching in the environment file(s) - the instructions are in the code, so I won't go through it again here. 2. Install the radiant-fragment-cache extension (https://github.com/ mokisystems/radiant-fragment-cacher) - do it via the Ray extension (big time saver and cleaner) 3. Cache the content you wish to cache (menus are a big hit on performance, especially if you are doing a lot of logic with them) 4. Sit back and smile that your site pages load in less than a second! 5. Sort of, to so logged-in/out stuff, use the backdoor extension (which allows you to do ruby code in views) and access sessions via request.session[:some_session_variable] Again, thank you sooooo much, M. On Jun 22, 12:36 am, Wesley Gamble <[email protected]> wrote: > There is a fragment_cacher extension that works quite well. > > Wes > > Sent from my iPhone > > On Jun 21, 2011, at 6:25 PM, "[email protected]" > <[email protected]> wrote: > > > > > Hello, I am currently trying to add in some functionality to a Radiant > > based site and am having no luck. Essentially, on the public side, if > > a member logs in, they should have content displayed just for them > > (so, for example, the main menu would display members only links). > > > I have the login working fine, as well as the overall display of my > > custom extension (using the radiant backdoor extension to save/read a > > session variable to detect when a user is logged in), but I have to > > turn off caching of the site to work properly. It looks as if Radiant > > only does caching on a page level - which in my case means turning > > caching off for all pages. > > > Is there any way around this? Can caching be done any other way? Or is > > there another way I could achieve the same effect? > > > Thanks in advance, > > > M.
