SneakyDave
Well-known member
I'd like to create a simple cron or addon to disable or enable an addon (chat) at certain dates and times.
Looking at the xf_addon table, it looks like it would be as simple as setting the "active" column to 0, but after noticing that didn't work, it looks like there is a cache rebuild that needs to happen
From the AddOn DataWriter
Is it possible to somehow do this rebuild from an addon, or is that more or less impossible?
Or is there a better way to disable an addon , I suppose I could set it to display:none in the template, but I bet there'd be a template cache to rebuild after that.
Looking at the xf_addon table, it looks like it would be as simple as setting the "active" column to 0, but after noticing that didn't work, it looks like there is a cache rebuild that needs to happen
From the AddOn DataWriter
Code:
$this->_getAddOnModel()->rebuildAddOnCachesAfterActiveSwitch($this->getMergedData());
Is it possible to somehow do this rebuild from an addon, or is that more or less impossible?
Or is there a better way to disable an addon , I suppose I could set it to display:none in the template, but I bet there'd be a template cache to rebuild after that.