This Neos backend module provides cache management functions to Neos administrators who don't have access to a Flow shell. In this early version, the backend module simply allows for flushing different caches (Neos_Fusion_Content, Flow_Mvc_Routing_Route and Flow_Mvc_Routing_Resolve by default).
Simply install this package via Composer. The package key is flownative/neos-cachemanagement
.
To add a label and a description to a cache configuration, you can use the following configuration in your Settings.yaml
:
Flownative:
Neos:
CacheManagement:
caches:
Neos_Fusion_Content:
label: 'Neos Content'
description: 'Caches the rendering of Neos content elements.'
To hide the cache hint set the following configuration in your Settings.yaml
:
Flownative:
Neos:
CacheManagement:
ui:
showCacheHint: false
You can hide all caches which do not have a label set by using the following configuration in your Settings.yaml
:
Flownative:
Neos:
CacheManagement:
ui:
hideCachesWithoutLabel: true
or you can hide a specific cache configuration by using the following configuration in your Settings.yaml
:
Flownative:
Neos:
CacheManagement:
caches:
Neos_Fusion_Content:
hidden: true
To hide the backend class set the following configuration in your Settings.yaml
:
Flownative:
Neos:
CacheManagement:
ui:
showBackendClass: false
If you want to run a flow command after flushing a cache, you can use the following configuration in your Settings.yaml
:
Flownative:
Neos:
CacheManagement:
caches:
Neos_Fusion_Content:
runAfter: 'foo:bar --baz'
To run the flow command asynchronously:
Flownative:
Neos:
CacheManagement:
caches:
Neos_Fusion_Content:
runAfter:
command: 'foo:bar --baz'
async: true