Bånder

OpCacheController extends Controller
in package

Attributes
#[Middleware]
['auth:sanctum', 'ability:' . \App\Models\TokenAbility::ACCESS_API->value, 'force.json']
#[Prefix]
'opcache'

Table of Contents

Properties

$opCacheService  : OpCacheService

Methods

__construct()  : mixed
clearCache()  : mixed
Clear
compileCache()  : mixed
Compile cache
getConfig()  : mixed
Get config
getStatus()  : mixed
Get status
denyWithStatus()  : mixed
gateCheckExecuteJob()  : mixed
gateCheckViewDashboard()  : mixed
noContent()  : mixed

Properties

Methods

clearCache()

Clear

public clearCache() : mixed
Tags
response

array{ success: bool }

Attributes
#[Post]
'/clear'
'api.opcache.clear'

compileCache()

Compile cache

public compileCache(Request $request) : mixed
Parameters
$request : Request
Tags
response

array{ totalFiles: int, compiled: int }

Attributes
#[Post]
'/compile'
'api.opcache.compile'

getConfig()

Get config

public getConfig() : mixed
Tags
response

array{ directives: array{property: int|float|bool|string}, version: array{version: string, opcache_product_name: string}, blacklist: string[] }

Attributes
#[Get]
'/config'
'api.opcache.getConfig'

getStatus()

Get status

public getStatus() : mixed
Tags
response

array{ opcache_enabled: bool, file_cache: string, file_cache_only: bool, cache_full: bool, restart_pending: bool, restart_in_progress: bool, memory_usage: array{ used_memory: int, free_memory: int, wasted_memory: int, current_wasted_percentage: float, }, interned_strings_usage: array{ buffer_size: int, used_memory: int, free_memory: int, number_of_strings: int, }, opcache_statistics: array{ num_cached_scripts: int, num_cached_keys: int, max_cached_keys: int, hits: int, start_time: int, last_restart_time: int, oom_restarts: int, hash_restarts: int, manual_restarts: int, misses: int, blacklist_misses: int, blacklist_miss_ratio: int, opcache_hit_rate: float }, jit: array{ enabled: bool, on: bool, kind: int, opt_level: int, opt_flags: int, buffer_size: int, buffer_free: int } }

Attributes
#[Get]
'/status'

denyWithStatus()

protected denyWithStatus(string $message, int $status) : mixed
Parameters
$message : string
$status : int

gateCheckExecuteJob()

protected gateCheckExecuteJob() : mixed

gateCheckViewDashboard()

protected gateCheckViewDashboard() : mixed

        
On this page

Search results