I'm developing plugin for Moodle 2.6 and I have an application variable that checks if an instance of RabbitMQ consumer is started or not, so it doesn't start another one. Right now, I have something like this:
$cache = cache::make_from_params(cache_store::MODE_APPLICATION, 'local_morph', 'rabbitmqconsumer');
$cache->set('enabled','true');
$enabled=$cache->get('enabled');
It works, but the problem is that this variable is permanent, and in case of apache restart I need to clean the cache in order to return variable to default state. Is it possible to make this variable non-permanent, without installing memcache data store?
Thanks,
Zoran