sargilla/mamushka
Sargilla/Mamushka Laravel Cache Class
Paquete para Laravel que se utiliza para caching de vistas.
INSTALACION
En Config/App.php registrar un nuevo service provider:
Sargilla\Mamushka\MamushkaServiceProvider::class,
USO
En los metodos agregar el metodo cacheable
use Sargilla\Mamushka\Cacheable;
class MyModel extends Model { use Cacheable;
En el controlador: return view('micontrolador.index', compact('controlador'));
Y en las vistas
@cache($controlador) @foreach ($controlador->items as $item) echo $item; @endforeach @endcache
Related Packages
Caches responses as static files on disk for lightning fast page loads.
A wrapper for Memcached with tags, soft invalidation, memoization, and regenerat...
A command to help invalidate the cache when scheduled Statamic entries are due t...