If I were you, I would make some type of event in App1 that can be requested to instruct it to 'update its cache' (however you want it to happen). Then every time you save something in app2, just fire off a request to app1 to 'update' whatever you just saved. You could be really granular and update individual records in cache, or simply remove the data from App1 and force it to re-load, but if you were to use app2 to make a http request to app1, then they can both maintain their own application scopes.
I have an application that is kinda like that, with the 'user' side of things and the 'admin' side both sharing an application scope w/ Transfer caching, so any changes on the admin side are instantly synced to the user side of things. I think perhaps it would have been easier to work with to share the applications between both, but if your user side is simpler and does not require model-glue, then perhaps you made the right call. The other thing you could do is simply set the administration application.cfc to extend your root application.cfc. Then they could share app scope perhaps, if your variable naming allowed that. Just some rambling ideas, hope one of em helps =) Chris Peterson On Wed, Sep 10, 2008 at 1:51 AM, Andrew <[EMAIL PROTECTED]> wrote: > > Hi, > > I currently have a web project that is structured something like this: > > <CF_ROOT>/ (let's call this "app1" - it's not a model-glue app) > Application.cfc > index.cfm > etc. > > <CF_ROOT>/administration/ (let's call this "app2" - this is a model- > glue MG:U app) > Application.cfc (a model glue app) > config/ > controller/ > views/ > etc. > > I have just written a caching mechanism which is put in application > scope of the "app1". What I had hoped to do was to refresh the data > when it's updated by in the administration section (ie. "app2"). But > now I've realised that app2 has a different application scope to > app1... > > Is there any way for app2 to access the cache I have in app1? > > I did find this suggestion via google but I'm not sure how it'll work > when I'm using MG: > > > http://www.bennadel.com/blog/1247-Ask-Ben-Dynamically-Executing-ColdFusion-Application-cfc-Instances.htm > > Any thoughts or suggestions on how I can best tackle this problem, or > whether my architecture is just completely flawed (stupid > perhaps? :-)) > > Thanks, > Andrew. > > > > > > -- Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
