Skip to content

Conversation

@lupinitylabs
Copy link

Using https://github.com/antonioribeiro/countries-laravel, there is no way to enable or disable caching by overwriting the countries.php config. I found that this is due to redundant countries. prefixes in the Cache Service and Nette classes which lead to effectively reading from countries.countries.cache.enabled, thus ignoring any settings for cache.enabled.

This is reproducible by publishing the config and changing any of the cache settings, for example the temp directory. All of the settings will be ignored, because the request to countries.countries.cache.enabled will return null, which is cast to false when returned from the Cache's enabled() method.

This PR will remove the redundant countries prefixes and will presumably also fix antonioribeiro/countries-laravel#17.

ralbear and others added 30 commits December 18, 2017 16:39
Remove duplicated list currencies
[ci skip] [skip ci]
Apply fixes from StyleCI

[ci skip] [skip ci]
[ci skip] [skip ci]
Apply fixes from StyleCI

[ci skip] [skip ci]
[ci skip] [skip ci]
Apply fixes from StyleCI

[ci skip] [skip ci]
[ci skip] [skip ci]
Apply fixes from StyleCI

[ci skip] [skip ci]
antonioribeiro and others added 28 commits September 12, 2019 20:43
[ci skip] [skip ci]
…Dggv

Apply fixes from StyleCI

[ci skip] [skip ci]
test against php 7.4 - remove prefix 'snapshot'
`currency` should be pluralized to `currencies` as

```
->hydrate('currency')
```
and
```
->currency
```
aren't things.
[ci skip] [skip ci]
…RgYP

Apply fixes from StyleCI

[ci skip] [skip ci]
…nd Nette classes with will effectively read from `countries.countries.cache.enabled`.
@lupinitylabs
Copy link
Author

The original code does not seem to be formatted to match the StyleCI settings.
Do you want me to change and commit the doc block formatting accordingly?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No cache is being created.

10 participants