Book cache is a drop in performance improvement for the book module. Book is very expensive when it comes to calculating the previous, next, and parent links for use in rendering at the bottom of the page. By hijacking core's uncache-able version of this function, book cache is able to serve up the results from cache bins instead of calculated at run time.
When a node in a book is updated all caches associated with that book are flushed. When the user visits the page, it will fill the cache bin for that page as to what it's next and previous nodes are so that the next time the page is requested this doesn't cost anything (performance wise). Testing as part of https://drupal.psu.edu/content/memory-profiling-hooks showed this module to reduce the amount of RAM needed by this function by over 50%, some loads going from around 630 KB or more, down to 250 KB (yes, ONE function).
This project can also be used as an API to tap into this data in the event that you want to optimize your own code calls for book_prev and book_next which are both very costly.
Project information
- Project categories: Content editing experience, Performance
3 sites report using this module
- Created by btopro on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
