Hello. I want to use caching in component. connect - use Cache; but when prompted -if (Cache::has('list')) or Cache::add('list', $result, 10); an error - An exception has been thrown during the rendering of a template ("Serialization of 'Closure' is not allowed"). I tried so - use \Cache; \Cache::add('list', $result, 10); but does not work Thank you.
This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.