spatie / laravel-partialcache Goto Github PK
View Code? Open in Web Editor NEWBlade directive to cache rendered partials in laravel
Home Page: https://spatie.be/opensource
License: MIT License
Blade directive to cache rendered partials in laravel
Home Page: https://spatie.be/opensource
License: MIT License
Before that worked, what is happening
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?
Currently only compatible with 5.1.
5.0 coming soon, this is a reminder for myself.
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.
When Partialcache.enabled set to false, caching still enabled
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
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
Any partials with @push
render the views but the @push
itself doesn't work - https://laravel.com/docs/5.6/blade#stacks
Does this actually helps with skipping Controller Eloquent/DB queries once cached as well or just caching (i.e. not re-rendering the output via Blade)?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.