GithubHelp home page GithubHelp logo

spatie / laravel-partialcache Goto Github PK

View Code? Open in Web Editor NEW
196.0 11.0 30.0 40 KB

Blade directive to cache rendered partials in laravel

Home Page: https://spatie.be/opensource

License: MIT License

PHP 100.00%
laravel php cache performance

laravel-partialcache's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-partialcache's Issues

Does partialcache prevent queries to database?

When I use partialcache on a partial like a news widget on a homepage, or the header with the main menu, will it automatically prevent the related queries being executed (news, menu) if I use ViewComposers for these partials?

And if not, is there any way I can accomplish that?

Laravel 5.5 Compatibility

Hi guys,

Can you confirm or deny Laravel 5.5 compatibility for this package? I saw some work was being done in a fork to achieve this, and also some commits on master but not in the tagged releases.

If there's any work left to do, I'd be happy to help.

New Release?

It appears there are commits in master that have not been released (mainly auto-registration for laravel 5.5). Do you plan to tag a new release?
-ralph

Exception

Hello Freek, I have this exception thrown, but I don’t know yet when and why. Do you see what is the problem ?

exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header()' in /home/forge/microstart.be/vendor/spatie/laravel-responsecache/src/ResponseCache.php:121

Doesn't seem to work

Hi,

I have installed the tool as you say, and when I run through the PartialCacheServiceProvider with xdebug, I can see that the directive "cache" is correctly added.

However, when I then watch my view, which has this line in its body:

@cache('frontend.partials.category-tabs', ['id_partial' => 'home-category-tab'], 60)

The output in html just shows the "@cache" line instead of the contents of the partial view... Also the directive closure is never called.

What could I have done wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.