Skip to main content

generate_for_today_cached

Function generate_for_today_cached 

Source
pub fn generate_for_today_cached(
    conn: &Connection,
    today: NaiveDate,
) -> Result<Vec<MemoryCard>, String>
Expand description

generate_for_today, reused while the library is unchanged. Memories, a memory’s detail page and the suggested collages all need today’s cards, and building them scans the whole library, so they’re built once and rebuilt only when the day or the library changes.