Skip to content

Caching paginated results #7

@mgarciadelojo

Description

@mgarciadelojo

Hi Jeffrey,

First of all, thank you very much for this package. I am a big fan of laracasts :)

I was trying to use the russian doll caching in a view with pagination, so to make it work I have to have this in my controller...

$collection = Collection::make($results->items);

... and then pass it to the view. This way I can cache the results, but I am speding twice the memory. By the way, to allow @cache directive to cache collections I needed to run:

composer require laracasts/matryoshka:dev-master

Do you come up any idea how can I solve this?

Thanks in advance,

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