Answer the question
In order to leave comments, you need to log in
How to connect in yii in opcache configuration?
Greetings, The CApcCache class is
registered in the configuration for cache :
'components'=>
[
...
'cache' =>
[
'class'=> 'CApcCache',
],
...
]
[
'COutputCache + create',
'duration'=> 24 * 3600 * 365,
'dependency'=>
[
'class'=>'CChainedCacheDependency',
'dependencies'=>
[
new CGlobalStateCacheDependency('t_places'),
new CDbCacheDependency("SELECT sys_date_update FROM t_places")
]
]
]
[opcache]
zend_extension="%sprogdir%/modules/php/%phpdriver%/ext/php_opcache.dll"
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
Answer the question
In order to leave comments, you need to log in
It is only important to remember that when moving from APC to OpCache, the latter does not work as a data caching engine.
OpCache is only a bytecode caching engine, so it does not offer similar data caching functionality.
It automatically caches the byte code that executes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question