2017 © Pedro Peláez
 

yii2-extension yii2-opcache

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

image

insolita/yii2-opcache

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

  • Wednesday, December 20, 2017
  • by Insolita
  • Repository
  • 2 Watchers
  • 7 Stars
  • 1,025 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 23 % Grown

The README.md

Yii2 OpCache module

Show statistic, config, reset all, invalidate files, search in cached files, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist insolita/yii2-opcache "~1.0"

or add, (*4)

"insolita/yii2-opcache": "~1.0"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

'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'], (*7)

Also for console command usage - add in console configuration, (*8)

'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, (*9)

Screens

StatusFilesConfig, (*10)

Understanding OpCache

@see https://habrahabr.ru/company/mailru/blog/310054/ (Ru), (*11)

@see http://jpauli.github.io/2015/03/05/opcache.html (En), (*12)

P.S.

Russian settings translation based on https://sabini.ch/cms/perevod-nastroek-zend-opcache.html, (*13)

The Versions

20/12 2017

dev-master

9999999-dev

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2 opcache

19/05 2017

1.04

1.04.0.0

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2 opcache

06/04 2017

1.03

1.03.0.0

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2 opcache

06/04 2017

1.02

1.02.0.0

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2 opcache

05/04 2017

1.01

1.01.0.0

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2 opcache

05/04 2017

1.0

1.0.0.0

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2 opcache