Skip to content

Conversation

@flaupretre
Copy link
Contributor

@flaupretre flaupretre commented Jan 2, 2016

This PR is not ready for merge yet. Vote for the corresponding RFC is open.

This is a follow-up to #976.

The 'cache_key' operation allows opcode caches to ask stream wrappers whether a given URL should be cached, and the key to use. This will allow stream-wrapped URLs to be opcode-cached, which is impossible today, except for 'phar' and 'file" wrappers (hardcoded).

@staabm
Copy link
Contributor

staabm commented Mar 1, 2016

@flaupretre any news on this? would love to get opcache in stream wrapped sources..

@flaupretre
Copy link
Contributor Author

Yes, RFC will be written and discussed soon (as soon as I have enough time to write it :)

@krakjoe
Copy link
Member

krakjoe commented Jan 2, 2017

@flaupretre fix conflicts please :)

Please push forward with this RFC (if still applicable), alternatively, if you consider this work abandoned, please close this PR.

@flaupretre
Copy link
Contributor Author

RFC is under discussion: https://wiki.php.net/rfc/url-opcode-cache

C API: php_stream_cache_key()
PHP API: file_cache_key()
Bump PHP_API_VERSION and enclose 'cache_key' definitions in conditional blocks

Check key prefix (debug mode only)

Implement new 'cache_key' streams operation

C API: php_stream_cache_key()
PHP API: file_cache_key()
Bump PHP_API_VERSION and enclose 'cache_key' definitions in conditional blocks

Check key prefix (debug mode only)

Minor fixes (PHP_API_VERSION checks)

Add key prefix check for userspace wrappers
@flaupretre
Copy link
Contributor Author

Vote is open (https://wiki.php.net/rfc/url-opcode-cache).

@php-pulls
Copy link

Comment on behalf of kalle at php.net:

Closing due to inactivity

@php-pulls php-pulls closed this Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants