~xibo-maintainers/xibo/release21

« back to all changes in this revision

Viewing changes to lib/Xmds/Soap5.php

  • Committer: GitHub
  • Author(s): Dan Garner
  • Date: 2019-08-12 15:25:40 UTC
  • mfrom: (762.1.5)
  • Revision ID: git-v1:7ccee3564a4c65bc3d0eec78dd7ed58c50e7fc0f
Merge pull request #648 from dasgarner/develop

Set invalidation method on RegisterDisplay cache checks

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
namespace Xibo\Xmds;
10
10
 
11
11
 
 
12
use Stash\Invalidation;
12
13
use Xibo\Entity\Bandwidth;
13
14
use Xibo\Entity\Display;
14
15
use Xibo\Exception\NotFoundException;
299
300
 
300
301
        // cache checks
301
302
        $cacheSchedule = $this->getPool()->getItem($this->display->getCacheKey() . '/schedule');
 
303
        $cacheSchedule->setInvalidationMethod(Invalidation::OLD);
302
304
        $displayElement->setAttribute('checkSchedule', ($cacheSchedule->isHit() ? crc32($cacheSchedule->get()) : ""));
303
305
 
304
306
        $cacheRF = $this->getPool()->getItem($this->display->getCacheKey() . '/requiredFiles');
 
307
        $cacheRF->setInvalidationMethod(Invalidation::OLD);
305
308
        $displayElement->setAttribute('checkRf', ($cacheRF->isHit() ? crc32($cacheRF->get()) : ""));
306
309
 
307
310
        // Log Bandwidth