New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Cache Setup #1383

bwaidelich opened this Issue Aug 31, 2018 · 0 comments


1 participant
Copy link

bwaidelich commented Aug 31, 2018

Some Cache Backends currently require manual setup.

This is not only tedious but it can lead to exceptions that only occur once a cache is accessed.
And because some caches are required very early in the boot sequence this can lead to a broken CLI.

Especially the PdoBackend is troublesome: It automagically creates required tables when using SQLite but otherwise it leads to a

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cache' doesn't exist

PDO Exception as soon as it's accessed.

A solution could be to add tables with the default names via migration, like proposed with #1374
This is a quick solution but it has the drawback that it creates those tables whether they are needed or not. Also it won't solve the issue with other cache backends that require setup and/or health check

@bwaidelich bwaidelich self-assigned this Aug 31, 2018

bwaidelich added a commit to bwaidelich/flow-development-collection that referenced this issue Aug 31, 2018

WIP: FEATURE: Setupable Cache Backends
Adds four new commands

* `cache:list`
* `cache:show`
* `cache:setup`
* `cache:setupall`

that allow for investigating and setting up Cache setup
via CLI.

Resolves: neos#1383

@bwaidelich bwaidelich moved this from To do to In progress in Neos 4.2 & Flow 5.2 Release Board Sep 12, 2018

Neos 4.2 & Flow 5.2 Release Board automation moved this from In progress to Done Nov 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment