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

Static cache expiry config key is wrong #2744

Closed
jasonvarga opened this issue Oct 26, 2020 · 3 comments · Fixed by #3085
Closed

Static cache expiry config key is wrong #2744

jasonvarga opened this issue Oct 26, 2020 · 3 comments · Fixed by #3085
Labels

Comments

@jasonvarga
Copy link
Member

Bug Description

You should be able to define the expiry as explained in the docs. Currently it uses what looks like a ported v2 version.

This needs to be backwards compatible, since users may have worked out that you can define default_cache_length. (We should check for expiry and default_cache_length).

Extra Detail

statamic/docs#294

Environment

Statamic version: 3.0.20

@jelleroorda
Copy link
Contributor

Would it be an idea to change this to "default" laravel behaviour as well, by choosing an expiry in seconds instead of minutes?

@okologisk
Copy link

okologisk commented Jan 12, 2021

After updating to 3.0.38, it looks like cache is not cleared - even when clearing via CP.

`'strategies' => [

    'half' => [
        'driver' => 'application',
        'expiry' => 5,
    ],

    'full' => [
        'driver' => 'file',
        'path' => public_path('static'),
        'lock_hold_length' => 0,
    ],

],

`

@jasonvarga
Copy link
Member Author

Provide some more details in a separate issue please.

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

Successfully merging a pull request may close this issue.

3 participants