NedStarkOfWinterfell
NedStarkOfWinterfell

Reputation: 5153

What is realpath_cache in PHP?

Can anyone tell me what exactly is meant by realpath_cache in PHP? Lots of references have been made to it in the PHP manual, but nothing explains it adequately. For example, the article on clearstatecache says that the parameter clear_realpath_cache denotes whether to clear the realpath cache or not. What is meant by this statement?

Upvotes: 10

Views: 5942

Answers (1)

ChrisR
ChrisR

Reputation: 14447

realpath_cache is the system that allows php to cache paths to locations of files/directories you are using to minimize expensive disk lookups. It could possibly greatly improve performance of you PHP application/site if you use alot of relative file paths PHP has to parse/lookup each time you reference them.

Upvotes: 6

Related Questions