[ https://issues.apache.org/jira/browse/JENA-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022355#comment-15022355 ]
ASF GitHub Bot commented on JENA-626: ------------------------------------- Github user ajs6f commented on a diff in the pull request: https://github.com/apache/jena/pull/95#discussion_r45621175 --- Diff: jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java --- @@ -92,13 +93,15 @@ protected void doOptions(HttpServletRequest request, HttpServletResponse respons response.setHeader(HttpNames.hAllow, "OPTIONS,POST") ; response.setHeader(HttpNames.hContentLengh, "0") ; } - + protected void doOptions(HttpAction action) { doOptions(action.request, action.response) ; } @Override protected void perform(HttpAction action) { + Cache cache = SPARQL_Query_Cache.getCache(); --- End diff -- A more subtle approach would be to clear the cache only if the action goes through. If it fails and no chance is made to the data, there's no need to clear the cache. > SPARQL Query Caching > -------------------- > > Key: JENA-626 > URL: https://issues.apache.org/jira/browse/JENA-626 > Project: Apache Jena > Issue Type: Improvement > Reporter: Andy Seaborne > Assignee: Saikat Maitra > Labels: java, linked_data, rdf, sparql > > Add a caching layer to Fuseki to cache the results of SPARQL Query requests. > This cache should allow for in-memory and disk-based caching, configuration > and cache management, and coordination with data modification. -- This message was sent by Atlassian JIRA (v6.3.4#6332)