Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Disable config caching by default #368

Closed
olegkrivtsov opened this issue Jul 19, 2016 · 6 comments
Closed

Disable config caching by default #368

olegkrivtsov opened this issue Jul 19, 2016 · 6 comments

Comments

@olegkrivtsov
Copy link

I tried to install the latest version of Zend Skeleton Application. I installed session support, standard plugins and form support. Then I opened the skeleton in web browser (Chrome). Then I added the aboutAction() action to IndexController and a Literal route for that action and a view template. So far so good.

Then I tried to open the About page in my browser, I've received error "The URL couldn't be matched by routing". Confusing. After many trials and errors, I've realised that disabling the config caching in application.config.php fixes the problem.

So, I suggest that the config caching be disabled by default (currently it is enabled).

@samsonasik
Copy link
Contributor

you can run:

$ composer development-enable

@olegkrivtsov
Copy link
Author

I think that caching should be disabled BY DEFAULT. When you download Zend Skeleton App, you definitely plan to develop your website from it, so config caching enabled by default may be a problem. You don't identify this problem in your documentation, so novice users will be confused.

@samsonasik
Copy link
Contributor

@GeeH
Copy link

GeeH commented Aug 2, 2016

Ping @weierophinney

I agree with this. I would like to see development mode enabled by default so that no caching happens, then a "deploying to production" document explaining what you need to do to make an app production ready.

Possible solution is to just disable the caching in the application.config.php with the shipped application. A better solution would be to run composer development-enable as part of the create project process.

@vrkansagara
Copy link

Agree with gray.

Sent from my iPhone

On 02-Aug-2016, at 8:03 PM, Gary Hockin notifications@github.com wrote:

Ping @weierophinney

I agree with this. I would like to see development mode enabled by default so that no caching happens, then a "deploying to production" document explaining what you need to do to make an app production ready.

Possible solution is to just disable the caching in the application.config.php with the shipped application. A better solution would be to run composer development-enable as part of the create project process.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@adamlundrigan
Copy link
Contributor

Adding this to the scripts section of the composer.json should be sufficient:

"post-create-project-cmd": "@development-enable",

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants