# opcache.file_cache_only = 1 disables Opcode Caching

- Thread: https://externals.io/message/89917
- Original archive: https://news-web.php.net/php.internals/89917
- Started by Tom Sommer on 2015-12-29T07:31:05+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #89917 — Tom Sommer — 2015-12-29T07:31:05+00:00

URL: https://externals.io/message/89917#89917

Awesome feature with opcache.file_cache_only, really exciting :)

A couple of things:

1) It's not documented in the manual

2) When you set opcache.file_cache_only = 1, the "Opcode Caching" 
information in `phpinfo()` disappears.
"Opcode Caching" and "Optimization" is shown as "Disabled". Is this 
intended?

Thanks :)

// Tom

---

## #89918 — Xinchen Hui — 2015-12-29T07:52:16+00:00

URL: https://externals.io/message/89917#89918 · In reply to: #89917

Hey:



> Awesome feature with opcache.file_cache_only, really exciting :)
>
> A couple of things:
>
> 1) It's not documented in the manual
>
yes, it's an experimental feature now

>
> 2) When you set opcache.file_cache_only = 1, the "Opcode Caching"
> information in `phpinfo()` disappears.
> "Opcode Caching" and "Optimization" is shown as "Disabled". Is this
> intended?
>

fixed in :
https://github.com/php/php-src/commit/3f07a256f75a55eaf7e7bfed681f8dfb4b901e55

now it will print:

Zend OPcache

Opcode Caching => Up and Running
Optimization => Enabled
SHM Cache => Disabled
File Cache => Enabled
Startup => OK

thanks


> Thanks :)
>
> // Tom
>
> --
> 
> 
>



-- 
Xinchen Hui
@Laruence
http://www.laruence.com/
