RE: [PHP-DEV] PHP RFC: Add is_cacheable() stream-wrapper operation
| From: | François Laupretre | Date: | Fri, 27 Mar 2015 00:32:06 +0000 |
| Subject: | RE: [PHP-DEV] PHP RFC: Add is_cacheable() stream-wrapper operation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85489@lists.php.net to get a copy of this message | ||
> De : Cesar Rodas [mailto:cesar@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