Browse Source

Fixes #12713: Fixed `yii\caching\FileDependency` to clear stat cache before reading filemtime

tags/2.0.11
Sergey 8 years ago committed by Alexander Makarov
parent
commit
483c6c1867
  1. 1
      framework/CHANGELOG.md
  2. 4
      framework/caching/FileDependency.php

1
framework/CHANGELOG.md

@ -131,6 +131,7 @@ Yii Framework 2 Change Log
- Bug #12605: Make 'safe' validator work on write-only properties (arthibald, CeBe)
- Bug #12629: Fixed `yii\widgets\ActiveField::widget()` to call `adjustLabelFor()` for `InputWidget` descendants (coderlex)
- Bug #12649: Fixed consistency of `indexBy` handling for `yii\db\Query::column()` (silverfire)
- Bug #12713: Fixed `yii\caching\FileDependency` to clear stat cache before reading filemtime (SG5)
- Enh #384: Added ability to run migration from several locations via `yii\console\controllers\BaseMigrateController::$migrationNamespaces` (klimov-paul)
- Enh #6996: Added `yii\web\MultipartFormDataParser`, which allows proper processing of 'multipart/form-data' encoded non POST requests (klimov-paul)
- Enh #8719: Add support for HTML5 attributes on submitbutton (formaction/formmethod...) for ActiveForm (VirtualRJ)

4
framework/caching/FileDependency.php

@ -43,6 +43,8 @@ class FileDependency extends Dependency
throw new InvalidConfigException('FileDependency::fileName must be set');
}
return @filemtime(Yii::getAlias($this->fileName));
$fileName = Yii::getAlias($this->fileName);
clearstatcache(false, $fileName);
return @filemtime($fileName);
}
}

Loading…
Cancel
Save