Skip to content

No cache is being created. #17

@aaronahearne

Description

@aaronahearne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions