sundayliu / iphoneebooks

Automatically exported from code.google.com/p/iphoneebooks
GNU General Public License v2.0
0 stars 0 forks source link

Caching HTML subchapters does not work on 1.1.3+ #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable HTML sub-chaptering
2. Open large HTML with <h2> tags in it
3. Close Books
4. Start Books again

What is the expected output? What do you see instead?
- Expected to see speed-up in opening specific chapter, due to caching of
sub-chapter structure. Instead the html is being re-parsed.

What version of the product are you using? On what operating system?
- Latest night build. 1.1.3.

Please provide any additional information below.

Under 1.1.3 application user has changed from 'root' to 'mobile', stopping
Books from writing to a new hard-coded cache directory under /var/root/.

Suggested fix:
Affected file: ChapteredHTML.m, line 69
- filename = [[NSMutableString alloc]
initWithString:@"/var/root/Library/Caches/Books/"];
+ filename = [[NSMutableString alloc] initWithString:[NSHomeDirectory()
stringByAppendingString:@"/Library/Caches/Books/"]];

Original issue reported on code.google.com by sergemak...@gmail.com on 9 Mar 2008 at 12:44

GoogleCodeExporter commented 9 years ago
fixed in the revision r311

Original comment by benoitce...@gmail.com on 13 Mar 2008 at 3:08

GoogleCodeExporter commented 9 years ago
should be in the nightly

Original comment by benoitce...@gmail.com on 13 Mar 2008 at 10:51

GoogleCodeExporter commented 9 years ago

Original comment by pendorbo...@gmail.com on 11 Jun 2008 at 3:32