Removed stat caching to make sure is_file is accurate

This commit is contained in:
Rudi Grinberg 2012-09-05 15:05:50 -04:00
parent ab6ae1ce8e
commit 579180301a
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ class ApiController extends Zend_Controller_Action
if ($media != null) {
$filepath = $media->getFilePath();
// Make sure we don't have some wrong result beecause of caching
clearstatcache();
if (is_file($filepath)) {
$full_path = $media->getPropelOrm()->getDbFilepath();