Skip to content

Different cacheKey for the same model #8

@hugo-lovighi

Description

@hugo-lovighi

In your package, i can see that we have a single cached view for a model ?!

It could be great to pass different "versions of card model key" and generate several keys like :

App\Card/preview-1-1457710078
App\Card/full-1-1457710078

used in blade: @cache($card, ['preview']))
$item->getCacheKey('preview-version')

used in blade: @cache($card, ['full']))
$item->getCacheKey('full-version')

I'm working on your code to use it in my project, because in my case it's impossible to use different design for a same model for the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions