Skip to content

Commit

Permalink
Merge pull request #37 from M6Web/fix/overload-config
Browse files Browse the repository at this point in the history
Fix : config always parsed even if cache is set
  • Loading branch information
omansour committed Jan 6, 2016
2 parents daf23d3 + 8180c80 commit 8244cfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ php:
- 7

before_script:
- phpenv config-rm xdebug.ini
- wget http://getcomposer.org/composer.phar
- php composer.phar install --dev

Expand Down
3 changes: 2 additions & 1 deletion src/M6Web/Bundle/LogBridgeBundle/Matcher/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ protected function buildMatcherCache()
public function getMatcher()
{
if (!$this->matcher) {
$cacheCode = $this->buildMatcherCache();

$matcherCache = new ConfigCache($this->getAbsoluteCachePath(), $this->isDebug());

if (!$matcherCache->isFresh()) {
$cacheCode = $this->buildMatcherCache();
$resources = [];

foreach ($this->cacheResources as $resource) {
Expand Down

0 comments on commit 8244cfc

Please sign in to comment.