代碼: 選擇全部
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=1024
opcache.interned_strings_buffer=32
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0
opcache.revalidate_freq=300
opcache.fast_shutdown=1
opcache.blacklist_filename="D:/Inetpub/wwwroot/opcache-blacklist.txt"
opcache.max_file_size=10
本例控制檔為 D:/Inetpub/wwwroot/opcache-blacklist.txt
內容,如:
代碼: 選擇全部
D:/Inetpub/ocs/cache/*.php
D:/Inetpub/ocs/cache/t_compile/*.php
D:/Inetpub/ocs/cache/t_cache/*
D:/Inetpub/ocs-2.3.6/cache/*.php
D:/Inetpub/ocs-2.3.6/cache/t_compile/*.php
D:/Inetpub/ocs/cache-2.3.6/t_cache/*
D:/Inetpub/phpBB3_2_2/cache/production/*.php
D:/Inetpub/phpBB3_2_2/cache/production/twig/*/*
註: 有使用 smarty 的系統,也需要留意樣版cache
註: 不知使用 opcache 的效能, 待觀察.