Closed GoogleCodeExporter closed 9 years ago
I don't really understand the problem. Probably a simple example would make it
more clear.
Also, I think you misunderstand what the group references means.
When you have a group which references another group, it has absolutely no
special handling. The effect is the same as copy+paste-ing the resources from
one group to another. It is just a convenient way to define a model. So, if you
have:
group1 {
js(/r1.js)
js(/r2.js)
group2()
}
group2 {
js(/r3.js)
js(/r4.js)
}
The outcome is identical if you would have the following model:
group1 {
js(/r1.js)
js(/r2.js)
js(/r3.js)
js(/r4.js)
}
group2 {
js(/r3.js)
js(/r4.js)
}
I think it is important to describe what do you mean by parse and reparse.
Having an EL inside CSS is an unimportant detail and shouldn't make any
difference.
Maybe I didn't understand well your problem.
Original comment by alex.obj...@gmail.com
on 28 Aug 2012 at 5:56
I'll try and explain my problem:
Say we have to groups:
group1 {
js(/r1.js)
js(/r2.js)
group2()
}
group2 {
js(/r3.js)
js(/r4.js)
}
If the user first requests for "group2":
1. wro will parse the r3 and r4 ( and also evaluate any EL inside it)
2. render the group back to the user.
3. Cache group2 for any future requests.
If the user then requests for group1:
1. wro will parse r1 and r2 and USE the "cached" group2.
(This is the behavior that we are seeing in our systems)
And to solve this we have to define the groups as:
group1 {
js(/r1.js)
js(/r2.js)
js(/r3.js)
js(/r4.js)
}
group2 {
js(/r3.js)
js(/r4.js)
}
Which is blowing up the configurations and doesn't let us inherited groups
ideally.
Original comment by shantanu...@ihg.com
on 28 Aug 2012 at 6:07
That is not quite true.
When group1 is requested, it caches the result of processing all resources
contained in that group. It doesn't cache the result produced by group2.
Probably the problem you have is caused by something different. Can you bring
some evidence or show more examples of your problem?
Original comment by alex.obj...@gmail.com
on 28 Aug 2012 at 6:13
Closing the issue with INVALID status.
Feel free to reopen it if you have more details.
Original comment by alex.obj...@gmail.com
on 30 Aug 2012 at 11:47
Original comment by alex.obj...@gmail.com
on 30 Aug 2012 at 11:48
Original issue reported on code.google.com by
shantanu...@ihg.com
on 28 Aug 2012 at 4:11