> De : Cesar Rodas [mailto:ce...@rodas.me] > > What is the status of https://wiki.php.net/rfc/streams-is-cacheable ? > Will it be open for votes soon enough? > > It looks a silly change but pretty useful to some projects I have.
Is_cacheable() is based on the fact that the key to use is the path itself, which is too specific. The RFC will be rewritten to propose a 'cache_key' operation, which will have the responsibility to return a binary string to use as a key to cache and retrieve the given path/uri. Among others, it will allow plain files to be cached using a combination of device+inode+mtime, as it was done in APC, instead of using the path (this will solve the issue with chrooted environments). I hope I can propose the new version for 7.1. Regards François -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php