namespace Drupal\webprofiler\State;
+use Drupal\Core\Cache\CacheCollector;
use Drupal\Core\State\StateInterface;
use Drupal\webprofiler\DataCollector\StateDataCollector;
/**
* Class StateWrapper.
*/
-class StateWrapper implements StateInterface {
+class StateWrapper extends CacheCollector implements StateInterface {
/**
* The system state.
$this->state->resetCache();
}
+ /**
+ * {@inheritdoc}
+ */
+ protected function resolveCacheMiss($key) {
+ return $this->state->resolveCacheMiss($key);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function destruct() {
+ $this->updateCache();
+ }
+
/**
* Passes through all non-tracked calls onto the decorated object.
*