2016-02-05, 10:24 AM
I'm trying to read information from the cache using the below code in my plugin
Fatal error: Call to a member function read() on null
Any help would be appreciated.
global $mybb, $modcp_nav, $cache, $headerinclude, $header, $theme, $footer, $templates, $db;
$awardscache->read("myawards");
I assumed I just needed to add $cache to globals in the plugin however it's not resolved the issue. I get the errorFatal error: Call to a member function read() on null
Any help would be appreciated.