Removed stat caching to make sure is_file is accurate
This commit is contained in:
parent
ab6ae1ce8e
commit
579180301a
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue