Re: Performance problem with php
| From: | Rasmus Lerdorf | Date: | Mon, 21 Jun 2010 18:37:22 +0000 |
| Subject: | Re: Performance problem with php | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48929@lists.php.net to get a copy of this message | ||
On 6/21/10 9:35 AM, Vincenzo D'Amore wrote:
> Thanks Rasmus,
>
> we are using wordpress. Looking at code:
>
> find . -type f -exec grep realpath {} \;
>
> I see a lot of:
>
> if ( function_exists('realpath') )
> $path = realpath($path);
> if ( function_exists('realpath') )
> $path = realpath($path);
> if ( function_exists('realpath') )
> $path = realpath($path);
> if ( realpath($path) == $path )
> if ( !is_null($dest_path) and $_dest_path = realpath($dest_path) )
>
> What do you think if I disable such function?
It is more likely a cache problem. Fix your realpath_cache settings
like I suggested.
-Rasmus