Search the web
Sign In
New User? Sign Up
fusebox5
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
mimic cf_accelerate cache tag as lexicon   Message List  
Reply | Forward Message #889 of 4406 |
By doing a migration from a fb3 app to fb5 I need a way to port the
cf_accelerate tag from Brandon Purcell, which was used inside
fb3/cfswitch

Thus I thought it could be done in a lexicon . What would be the best
way to start the lexicon?

Simplest Approach would be, validating the attributes with
fb_.verbInfo.attributes and then copy line by line to code from the
customTag, or is this to much simplified.

Daniel
--
www.danielschmid.name



Wed Jun 28, 2006 11:56 am

ananda1203
Offline Offline
Send Email Send Email

Forward
Message #889 of 4406 |
Expand Messages Author Sort by Date

By doing a migration from a fb3 app to fb5 I need a way to port the cf_accelerate tag from Brandon Purcell, which was used inside fb3/cfswitch Thus I thought...
Daniel Schmid
ananda1203
Offline Send Email
Jun 28, 2006
12:02 pm

Daniel, You've basically got the right idea, but if you wanted to be even lazier (aka get it done faster), you could call Brandon's cf_accelerate tag from the...
Nathan Strutz
nathan_strutz
Offline Send Email
Jun 28, 2006
3:03 pm

Nathan, thanks, live can be so simple if you see it.... <cfscript> if (fb_.verbInfo.executionMode is "start") { fb_appendLine('<cf_accelerate>'); } else { ...
Daniel Schmid
ananda1203
Offline Send Email
Jun 28, 2006
7:42 pm

the caching tag belongs in your controller, and should contain both the model and view invocations: <fuseaction name="home"> <cf:accelerate primaryKey="home"> ...
Barney Boisvert
barneyboisvert
Offline Send Email
Jun 28, 2006
9:06 pm

That works well with <cf:accelerate> as long as you don't use contentvariables. <fuseaction name="home"> <cf:accelerate primaryKey="home"> <do...
Daniel Schmid
ananda1203
Offline Send Email
Jun 29, 2006
8:57 am

How about adding a "contentVariable" attribute to the cf:accelerate tag and making it so that instead of generated content, the backing cf_accelerate caches...
Barney Boisvert
barneyboisvert
Offline Send Email
Jun 29, 2006
4:13 pm

Something that might be interesting to look at for FB 5.1 is to add caching to the contentvariables mechanism as part of the core framework. That way you could...
David Sparkman
sparkmad
Offline Send Email
Jun 29, 2006
5:15 pm

In most cases, that wouldn't be beneficial, since the data setup is usually not part of the fuseaction that gets saves to the content variable. I.e. you...
Barney Boisvert
barneyboisvert
Offline Send Email
Jun 29, 2006
6:47 pm

It seems to be not so easy to bring the value of contentVariable into the customTag in order to be cached. I thought I could just put the contentVariable in...
Daniel Schmid
ananda1203
Offline Send Email
Jun 29, 2006
7:33 pm

Let me explain what I meant a little better. Take this XML: <fuseaction name="home"> <cf:accelerate primaryKey="home" contentVariable="maincontent"> <do...
Barney Boisvert
barneyboisvert
Offline Send Email
Jun 29, 2006
8:07 pm

Hi, can someone quickly explain what the main differeances between a verb and lexicon are? Thanks. ... -- Nick Tong web: http://talkwebsolutions.co.uk ...
Nick Tong - TalkWebSo...
nptonguk
Offline Send Email
Jun 29, 2006
8:39 pm

A verb is an XML tag you use in circuit.xml, a lexicon is a collection of verbs. Or, a verb is a CFM file that implements an XML tag, and a lexicon is a...
Barney Boisvert
barneyboisvert
Offline Send Email
Jun 29, 2006
9:47 pm

GREAT thanks Barney... its rather late here and the notes where not sinking in :S ... -- Nick Tong web: http://talkwebsolutions.co.uk blog:...
Nick Tong - TalkWebSo...
nptonguk
Offline Send Email
Jun 29, 2006
10:05 pm

A verb is an XML tag you use in circuit.xml, a lexicon is a collection of verbs. Or, a verb is a CFM file that implements an XML tag, and a lexicon is a...
Marc Funaro
advantexllc
Offline Send Email
Jun 30, 2006
1:39 pm

Barney you're genius... that works! It feels a little bit like a hack or I should better say like a nice workaround ;) As David mentioned above, a well thought...
Daniel Schmid
ananda1203
Offline Send Email
Jun 30, 2006
11:34 am

... something to think about in 5.1 or 6.0. The problem is it's like implementing security into Fusebox, folk have their own way of implementing security so...
John Beynon
john_beynon
Offline Send Email
Jun 30, 2006
1:10 pm

My only reason for mentioning adding caching to the core framework is that to me it has about as much place in the core framework as contentvariables. To me...
David Sparkman
sparkmad
Offline Send Email
Jun 30, 2006
3:36 pm

... While that opinion is valid, there are a lot of people who don't share it (myself included). Caching content variables is useful in some scenarios, but by...
Barney Boisvert
barneyboisvert
Offline Send Email
Jun 30, 2006
4:03 pm

Should have added a <sarcasm></sarcasm> to my opening statement. The point being that it can be argued right or wrong that half the features that are currently...
David Sparkman
sparkmad
Offline Send Email
Jun 30, 2006
5:23 pm

... Caching only certain parts of the page gives you - on my opinion - more flexibility. There are always certain sections which should be cache like rotating...
Daniel Schmid
ananda1203
Offline Send Email
Jun 30, 2006
7:05 pm

... What "major issue"? Sean A Corfield An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret...
Sean Corfield
seancorfield
Offline Send Email
Jun 30, 2006
8:27 pm

... The fact that <do> and <fuseaction> are not "normal" verbs, I had assumed that goal was to go forward with making these behave just like the rest of the...
David Sparkman
sparkmad
Offline Send Email
Jul 1, 2006
4:38 pm

... They're not verbs at all, normal or abnormal. They happent to be represented by XML tags, but so are parameters (by the 'parameter' tag), and a parameter...
Barney Boisvert
barneyboisvert
Offline Send Email
Jul 2, 2006
5:17 am

... OK, first off, do/fuseaction are essentially compiler directives, not verbs. That's always been "by design" in Fusebox 4 and upward and I had no intention...
Sean Corfield
seancorfield
Offline Send Email
Jul 2, 2006
6:22 am

I'm sure there is something on my end - I'm just pulling a super "blank" moment: I've copied some development code to my laptop (running IIS/CF 7.02/FB5rc1). ...
Stephen Cassady
cassady@...
Send Email
Jul 2, 2006
11:52 pm

ahh, I noticed this also several times since I updated to cf 7.0.2 but we might just do the same thing wrong...;) Daniel ... ahh, I noticed this also several...
Daniel Schmid
ananda1203
Offline Send Email
Jul 4, 2006
12:06 pm

i think I'm seeing this on cf 7.0.1 to...need to confirm what's happening, except in my instance the loadclean etc isn't picking up the changes - i renamed a...
John Beynon
john_beynon
Offline Send Email
Jul 4, 2006
2:32 pm

here's my scenario...mode is set to development-full-load, using load=true and supplying password etc etc I can't get it to pick up a change to a ...
John Beynon
john_beynon
Offline Send Email
Jul 4, 2006
2:37 pm

... If you do load=true, it blows away the entire Fusebox structure so it *has* to reload the circuit XML file because otherwise it wouldn't have a circuit...
Sean Corfield
seancorfield
Offline Send Email
Jul 4, 2006
9:04 pm
First  | < Prev  |  Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help