[ 
http://jira.dspace.org/jira/browse/DS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11289#action_11289
 ] 

Mark Diggory commented on DS-298:
---------------------------------

TBH, I'm not convinced that our caching content in cocoon is of any real 
benefit.  The real cost is in the database queries to construct the DSpace 
objects, which need to be constructed to validate the cache in the first place. 
 

Ultimately, with User logins and reconstructing the UI Navigation across all 
the aspects, there is actually very little content in the UI that can be cached 
across requests. If all we are talking about for rendering the content section 
of a page is constructing a sax stream off the object already in memory from 
the validation stage.

In recent projects, I've taken to disabling Cocoon Cache entirely across the 
ArtifactBrowser aspect to remedy this problem.  This said, caching inside the 
Service layer would be far more effective at holding onto results/object 
constructed off the Database across requests. And this is where the real win in 
caching would come from, no matter what the UI rendering solution.

> Caching problem when users logout
> ---------------------------------
>
>                 Key: DS-298
>                 URL: http://jira.dspace.org/jira/browse/DS-298
>             Project: DSpace 1.x
>          Issue Type: Bug
>          Components: XMLUI
>    Affects Versions: 1.5.2, 1.6.0
>            Reporter: Flávio Botelho
>            Priority: Minor
>
> When the user logs out, cocoon is still responding with a 304 (The session is 
> fine as new pages are being correctly responded without the menu).
> But pages already seen while logged keep the menu. (This is already working 
> when the user logs in, only not when he logs out).
> Typical response after i log out:
> http://bdjur/xmlui/handle/2011/17962
> GET /xmlui/handle/2011/17962 HTTP/1.1
> Host: bdjur
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) 
> Gecko/2009061212 Iceweasel/3.0.6 (Debian-3.0.6-1)
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: pt-br,en-us;q=0.7,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://bdjur/xmlui/handle/2011/17962
> Cookie: JSESSIONID=C2477EAD309363964814919D753C13E3
> If-Modified-Since: Tue, 01 Sep 2009 22:14:51 GMT
> Cache-Control: max-age=0
> HTTP/1.x 304 Not Modified
> Date: Tue, 01 Sep 2009 23:18:38 GMT
> Connection: Keep-Alive
> Keep-Alive: timeout=5, max=100
> Vary: User-Agent

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to