Skip to content

Commit

Permalink
Don't overwrite the cached modification timestamp of the record with …
Browse files Browse the repository at this point in the history
…the Proai poll timestamp.
  • Loading branch information
menzowindhouwer committed Sep 9, 2016
1 parent b1ec38f commit 870b2c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java/proai/cache/CachedContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ private void writeChanged(PrintWriter out) throws ServerException {
line = reader.readLine();
}
if (!sawHeaderEnd) throw new ServerException("While parsing, never saw </header>");
String fixed = upToHeaderEnd.toString().replaceFirst("p>[^<]+<", "p>" + m_dateStamp + "<");
//String fixed = upToHeaderEnd.toString().replaceFirst("p>[^<]+<", "p>" + m_dateStamp + "<");
String fixed = upToHeaderEnd.toString();

if (m_headerOnly) {
int headerStart = fixed.indexOf("<h");
Expand Down

0 comments on commit 870b2c7

Please sign in to comment.