PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Andrey Iatsenko   Laravel OpCache Facade   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel OpCache Facade
Access and retrieve statistics of OPCache usage
Author: By
Last change:
Date: 6 months ago
Size: 919 bytes
 

Contents

Class file image Download

LaravelOpcacheFacade

Packagist Version Packagist Downloads Packagist Downloads

Laravel artisan commands for working with opcache.

:scroll: Installation

The package can be installed via composer:

composer require yzen.dev/laravel-opcache-facade

:scroll: Usage

Resets the contents of the opcode cache:

php artisan opcache:clear

Show configuration information about the cache:

php artisan opcache:config

Get status information about the cache:

php artisan opcache:status

Use from code

use LaravelOpcacheFacade\OpcacheFacade;

OpcacheFacade::clear();
OpcacheFacade::getConfig();
OpcacheFacade::getStatus();