I have two chunks of data in the same 'viewModel' template:
{!-- Getting data for kitchen list --}
{exp:stash:set_list
name="kitchen_list"
parse_tags="yes"
save="yes"
scope="site"
refresh="1440"
replace="no"
}
{exp:channel:entries
channel="kitchen_list"
disable="member_data|pagination|categories"
}
{stash:title}{title}{/stash:title}
{stash:url_title}{url_title}{/stash:url_title}
{stash:url_title_path}{url_title_path='sky-island-natural-foods/whats-cooking'}{/stash:url_title_path}
{stash:description_brief}{kitchen_description_brief}{/stash:description_brief}
{stash:description_full}{kitchen_description_full}{/stash:description_full}
{stash:photo_product}{kitchen_photo_product}{/stash:photo_product}
{/exp:channel:entries}
{/exp:stash:set_list}
{!-- Getting data for kitchen list page --}
{exp:stash:set_list
name="kitchen_page"
parse_tags="yes"
save="yes"
scope="site"
refresh="1440"
replace="no"
}
{exp:channel:entries
channel="kitchen_page"
disable="member_data|pagination|categories"
limit="1"
}
{stash:title}{title}{/stash:title}
{stash:sidebar_heading}{kitchen_page_sidebar_heading}{/stash:sidebar_heading}
{stash:sidebar}{kitchen_page_sidebar}{/stash:sidebar}
{/exp:channel:entries}
{/exp:stash:set_list}
It all works fine, but when I look at the stash table with Sequel Pro as I navigate the pages, it seems that the kitchen_list does not get rewritten to the database (I thought replace="no" took care of this) on each subsequent page visit, but kitchen_page does get rewritten every time I revisit a page which uses that data. So there are multiple row in the table for kitchen_page with identical data, just different IDs, but there is only one row for kitchen_list.
I expected that by caching the fragments of data and using replace="no", I would only see a single row in the stash table for that fragment, no matter how many times the stash list was called.
I can't tell if there is something off with my code, or just my assumptions/understanding of the caching. Thank you.