Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (29) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-05-10 (16 hours ago) | Not yet rated by the users | Total: Not yet counted | Not yet ranked |
Version | License | PHP version | Categories | |||
yii2-opcache 1.0 | MIT/X Consortium ... | 7 | Configuration, Performance and optimi..., P..., A... |
Description | Author | |
This package can be used to show and update the PHP Opcache settings. |
Show statistic, config, reset all, invalidate files, search in cached files
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist insolita/yii2-opcache "~1.0"
or add
"insolita/yii2-opcache": "~1.0"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
'bootstrap'=>[
...
\insolita\opcache\Bootstrap::class
...
],
...
'modules'=>[
...
'opcache'=>[
'class'=>'insolita\opcache\OpcacheModule',
'as access'=>[
'class' => \yii\filters\AccessControl::class,
'rules' => [
[
'allow' => true,
//Protect access
'roles' => ['developer'],
],
],
]
],
...
]
Go to route `
['/opcache/default/index']`
Also for console command usage - add in console configuration
'bootstrap'=>[
...
\insolita\opcache\Bootstrap::class
...
],
...
'controllerMap'=>[
'opcache'=>[
'class'=>\insolita\opcache\commands\OpcacheController::class
]
]
commands opcache/status opcache/config opcache/files opcache/reset opcache/invalidate will be available
@see https://habrahabr.ru/company/mailru/blog/310054/ (Ru)
@see http://jpauli.github.io/2015/03/05/opcache.html (En)
Russian settings translation based on https://sabini.ch/cms/perevod-nastroek-zend-opcache.html
Files |
File | Role | Description | ||
---|---|---|---|---|
src (2 files, 9 directories) | ||||
composer.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
commands (1 file) | ||||
contracts (3 files) | ||||
controllers (1 file) | ||||
messages (2 directories) | ||||
models (2 files) | ||||
services (2 files) | ||||
utils (3 files) | ||||
views (1 directory) | ||||
widgets (1 file) | ||||
Bootstrap.php | Class | Class source | ||
OpcacheModule.php | Class | Class source |
Files | / | src | / | contracts |
File | Role | Description |
---|---|---|
IFileFilterModel.php | Class | Class source |
IOpcacheFinder.php | Class | Class source |
IOpcachePresenter.php | Class | Class source |
Files | / | src | / | messages | / | en |
File | Role | Description |
---|---|---|
hint.php | Aux. | Auxiliary script |
interface.php | Aux. | Auxiliary script |
status.php | Aux. | Auxiliary script |
Files | / | src | / | messages | / | ru |
File | Role | Description |
---|---|---|
hint.php | Aux. | Auxiliary script |
interface.php | Aux. | Auxiliary script |
status.php | Aux. | Auxiliary script |
Files | / | src | / | models |
File | Role | Description |
---|---|---|
FileFilterModel.php | Class | Class source |
OpcacheStatus.php | Class | Class source |
Files | / | src | / | services |
File | Role | Description |
---|---|---|
OpcacheFinder.php | Class | Class source |
OpcachePresenter.php | Class | Class source |
Files | / | src | / | utils |
File | Role | Description |
---|---|---|
Helper.php | Class | Class source |
OpcacheException.php | Class | Class source |
Translator.php | Class | Class source |
Files | / | src | / | views | / | default |
File | Role | Description |
---|---|---|
blacklist.php | Aux. | View script |
config.php | Aux. | View script |
files.php | Aux. | View script |
index.php | Aux. | View script |
_charts.php | Aux. | View script |
_menu.php | Aux. | View script |
Version Control | Unique User Downloads | |||||||
100% |
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.