Skip to content
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

No cache is being created. #17

Open
aaronahearne opened this issue Jul 24, 2019 · 1 comment · May be fixed by antonioribeiro/countries#182
Open

No cache is being created. #17

aaronahearne opened this issue Jul 24, 2019 · 1 comment · May be fixed by antonioribeiro/countries#182

Comments

@aaronahearne
Copy link

aaronahearne commented Jul 24, 2019

I recently switched from the countries package to the countries-laravel package.

I've cleared the composer cache and ensured that the initial package has been removed. Im working on a 'local' environment using Laravel 5.8.

The config states:

cache' => [
    'enabled' => true,

    'service' => PragmaRX\Countries\Package\Services\Cache\Service::class,

    'duration' => 180,

    'directory' => sys_get_temp_dir().'/__PRAGMARX_COUNTRIES__/cache',
],

The previous package had the same configuration, but the directory was set to sys_get_temp_dir().'/__pragmarx-countries-cache__'.

Now when I run a piece of code which accesses countries, the same __pragmarx-countries-cache__ directory is created in my system tmp directory where it should be creating __PRAGMARX_COUNTRIES__ and still no cache files are being generated.

I've tried setting my environment to production, but this didnt help.

From following the debugger through the PragmaRX\Countries\Package\Services\Cache\Service it looks like the configuration is completely ignored

@ametad
Copy link

ametad commented Mar 30, 2022

You are right, the directory is ignored, just like that!

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 a pull request may close this issue.

2 participants