- Timestamp:
- 2014-08-21T12:19:21+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSDocumentModel.java
r28965 r29224 103 103 protected String _siteHome; 104 104 protected MessageRouter _router; 105 protected HashMap<String, Document> _docCache = new HashMap<String, Document>(); 105 106 // When we are doing document editing through browser, metadata changes are currently handled by metadata_server.pl. This edits files directly. If I then come to edit text via this class, the doc xml gets read from the cache and my external changes are lost. I am disabling it for now... 107 //protected HashMap<String, Document> _docCache = new HashMap<String, Document>(); 106 108 107 109 public GSDocumentModel(String siteHome, MessageRouter router) … … 695 697 docXML = db.parse(docFile); 696 698 697 _docCache.put(oid + "__" + collection, docXML);699 //_docCache.put(oid + "__" + collection, docXML); 698 700 } 699 701 catch (Exception ex) … … 1910 1912 1911 1913 Document docXML = null; 1912 if ((docXML = _docCache.get(oid + "__" + collection)) == null)1913 {1914 //if ((docXML = _docCache.get(oid + "__" + collection)) == null) 1915 // { 1914 1916 String filePath = archiveGetDocumentFilePath(oid, collection, userContext); 1915 1917 File docFile = new File(filePath); … … 1926 1928 docXML = db.parse(docFile); 1927 1929 1928 _docCache.put(oid + "__" + collection, docXML);1930 //_docCache.put(oid + "__" + collection, docXML); 1929 1931 } 1930 1932 catch (Exception ex) … … 1932 1934 return null; 1933 1935 } 1934 }1936 // } 1935 1937 return docXML; 1936 1938 }
Note:
See TracChangeset
for help on using the changeset viewer.