Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2-RC1, 1.2-RC2
-
Fix Version/s: 2.3-M2
-
Component/s: None
-
Labels:None
Description
There are a lot of createTemplate variants on the engine, but very few of them actually attempt to get a page from the cache.
In particular createTemplate(String content, String pageName) never attempts to cache.
Surely we can generate a page name for caching purposes that is based on an SHA1 digest of the source template? This may take a little while to compute, but likely a lot less time than compiling the template and leaking permgen? Even then, the digest is only needed if there is no way to tell the engine what the lastmod time is of the template. If there is an extra variant:
createTemplate(String content, String pageName, Date lastModified)
...then this problem can be circumvented also.
Issue Links
- is related to
-
GRAILS-7169
GroovyPagesTemplateEngine.createTemplate(String text, String pagename) never caches generated GSP
-
- relates to
-
GRAILS-3818
Make rendering operations (views, templates etc.) possible on non request threads and from services and other beans
-
-
GRAILS-6809
Provide a way to render views outside of controllers and taglibs.
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.2 final [ 16022 ] | |
| Fix Version/s | 1.2.1 [ 16060 ] |
| Fix Version/s | 1.2.1 [ 16060 ] | |
| Fix Version/s | 1.2.2 [ 16198 ] |
| Fix Version/s | 1.2.3 [ 16313 ] | |
| Fix Version/s | 1.2.2 [ 16198 ] |
| Assignee | Graeme Rocher [ graemerocher ] |
| Fix Version/s | 1.2.4 [ 16555 ] | |
| Fix Version/s | 1.2.3 [ 16313 ] |
| Fix Version/s | 1.2.4 [ 16555 ] | |
| Fix Version/s | 1.2.5 [ 16652 ] |
| Fix Version/s | 1.2.5 [ 16652 ] | |
| Fix Version/s | 1.3.6 [ 16730 ] |
| Fix Version/s | 1.3.6 [ 16730 ] | |
| Fix Version/s | 1.4-M1 [ 16812 ] |
| Assignee | Lari Hotari [ lhotari ] |
| Link |
This issue relates to |
| Link |
This issue relates to |
| Link |
This issue is related to |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Fix Version/s | 1.4-M2 [ 12504 ] | |
| Fix Version/s | 1.4-M1 [ 11040 ] |
| Assignee | Lari Hotari [ lhotari ] | Graeme Rocher [ graemerocher ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Fix Version/s | 2.0-M2 [ 12805 ] | |
| Fix Version/s | 2.0-M1 [ 12504 ] |
| Workflow | jira [ 33214 ] | Grails [ 41590 ] |
| Workflow | Grails [ 41590 ] | Copy of Grails [ 49041 ] |
| Workflow | Copy of Grails [ 49041 ] | Grails [ 56451 ] |
| Status | In Progress [ 3 ] | Open [ 1 ] |
| Workflow | Grails [ 56451 ] | Grails2 [ 62824 ] |
| Fix Version/s | 2.0-RC1 [ 12803 ] | |
| Fix Version/s | 2.0-M2 [ 12805 ] |
| Fix Version/s | 2.0.1 [ 13005 ] | |
| Fix Version/s | 2.0-RC1 [ 12803 ] |
| Workflow | Grails2 [ 62824 ] | jira [ 71181 ] |
| Workflow | jira [ 71181 ] | Grails2 [ 79224 ] |
| Last Reviewed | 01/Jan/10 |
| Workflow | Grails2 [ 79224 ] | jira [ 88036 ] |
| Workflow | jira [ 88036 ] | Grails2 [ 96248 ] |
| Fix Version/s | 2.0.2 [ 13064 ] | |
| Fix Version/s | 2.0.1 [ 13005 ] |
| Fix Version/s | 2.0.3 [ 13094 ] | |
| Fix Version/s | 2.0.2 [ 13064 ] |
| Fix Version/s | 2.0.4 [ 13099 ] | |
| Fix Version/s | 2.0.3 [ 13094 ] |
| Fix Version/s | 2.2 [ 13093 ] | |
| Fix Version/s | 2.0.4 [ 13099 ] |
| Fix Version/s | 2.3 [ 13311 ] | |
| Fix Version/s | 2.2-RC1 [ 13093 ] |
| Fix Version/s | 2.3-M2 [ 13457 ] | |
| Fix Version/s | 2.3-M1 [ 13311 ] |
Lari, I'm assigning this to you are the expert here.
I apologise if this is too forward.