I have a Drupal 6 website and I want to write a module that will cache nodes based on the published date. Older nodes would be cached longer than newer nodes. I plan to use cache_set(), cache_get() and nodeapi hooks to add the node to the cache and check if it is in the cache before loading. However I am not sure if my logic is correct. Can provide any tips to put me on the right track?
Boost could do this. Core can not due to the cache_page bin/table getting cleared on cron & node save. Boost has a cache expiration block that allows for different cache lifetimes.