# FPM / CLI
opcache.enable = 1
opcache.memory_consumption = ?
opcache.max_accelerated_files = ?
opcache.interned_strings_buffer = ?
opcache.save_comments = 0/1
opcache.fast_shutdown = 1
# CLI only
opcache.enable_cli = 1
opcache.file_cache = "/tmp/php-file-cache"
opcache.file_cache_only = 1
opcache.file_cache_consistency_checks = 1
include('include.php');
print_r(realpath_cache_get());
[
'/home/vagrant/./include.php' => [
'key' => 3250252058440589612,
'is_dir' => false,
'realpath' => '/home/vagrant/include.php',
'expires' => 1470831105,
],
'/home' => [
'key' => 4353355791257440477,
'is_dir' => true,
'realpath' => '/home',
'expires' => 1470831105,
],
'/home/vagrant' => [
'key' => 1412428085930400000,
'is_dir' => true,
'realpath' => '/home/vagrant',
'expires' => 1470831105,
],
];
./b => /a/b
/a/b/../c => /a/c
/c -> /a/b => /a/b
realpath_cache_size = ?
realpath_cache_ttl = 0
clearstatcache(true);
├─ current -> ../releases/20160803103000
└─ releases
├─ 20160803103000
├─ 20160802083000
└─ 20160801093500
current/index.php -> releases/1/index.php
# Deploy
current/index.php -> releases/2/index.php
# Realpath cache still contains releases/1/index.php for current/index.php.