A third way to load your cache is to use the <dump-cache> tag in combination with the <load-items> tag. The <dump-cache> tag logs the current contents of the item cache. If you use the dump-type="queries" attribute, then the tag will log a <load-items> tag that you can use to reload all the items that were in the cache when you dumped it. For example:

For example, the following <dump-caches> tag:

<dump-caches item-descriptors="product" dump-type="queries"/>

might cause the following to be logged, if there were four product items in the cache:

============== START BUFFER PRECACHE ==============
<load-items item-descriptor="product">
    prod100003,prod100002,prod100001,prod10001
</load-items>
=============== END BUFFER PRECACHE===============
 
loading table of contents...