Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Making Sense Of Registry::set Rate Topic   - - - - -

  • natewallis
  • Senior Member
  • Members
  • Join Date: 11-Jan 13
  • 244 posts

Posted 13 May 2022 - 08:19 PM #1



In my addon init.php I have this call:

Registry::registerCache('bfa_data_feeds', []);

And then later in my code, I add something to this store with the line:

Registry::set('addons.bfa_data_feeds.data_feed_list', fn_bfa_data_feeds_get_feed_list());

This works, however if I switch between all stores and a particular storefront, the cached value is no longer recognised and vice versa.


Two questions. 


Am I using the cache correctly here and how do I get it to retain values when moving between all stores and a particular storefront. '