Implementing Active Record Caching in Laravel 4? -
any how can implement codeigniter active record caching (http://ellislab.com/codeigniter/user-guide/database/active_record.html#caching) in laravel 4?
you cannot implement codeigniter caching in laravel 4.
but can implement laravel caching in laravel 4. please see caching docs here. there specific docs caching queries here. in principle do
$users = db::table('users')->remember(10)->get();
where 10 number of minutes cache result for.
Comments
Post a Comment