| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function persist($data, $key) |
||
| 25 | { |
||
| 26 | /** @var CacheManager $cacheManager */ |
||
| 27 | $cacheManager = GeneralUtility::makeInstance(CacheManager::class); |
||
| 28 | $cache = $cacheManager->getCache('onpage_extension'); |
||
| 29 | if (!$cache->get('lastCrawlDate')) { |
||
| 30 | $cache->set('lastCrawlDate', date('d.m.Y')); |
||
| 31 | } |
||
| 32 | $cache->set($this->getIdentifier($key), json_encode($data)); |
||
| 33 | } |
||
| 34 | |||
| 46 |