teepluss/fast is a Laravel package for fast is a robot making cache instead of your client..
It currently has 5 GitHub stars and 10 downloads on Packagist.
Install it with composer require teepluss/fast.
Discover more Laravel packages by teepluss
or browse all Laravel packages to compare alternatives.
Last updated
Fast is a robot making cache instead of your client.
To get the latest version of Theme simply require it in your composer.json file.
"teepluss/fast": "dev-master"
You'll then need to run composer install to download it and have the autoloader updated.
Once Theme is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key.
'providers' => array(
'Teepluss\Fast\FastServiceProvider',
)
Fast also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/config/app.php file.
'aliases' => array(
'Fast' => 'Teepluss\Fast\Facades\Fast',
)
Publish config using artisan CLI.
php artisan config:publish teepluss/fast
Remember your content in (x) seconds.
$content = Fast::expireInSecond(10)->remember('key-of-page', function()
{
$html = 'Your HTML Goes Here.' . rand(1, 1000);
return $html;
});
return $content;
Find out the content problem.
$content = Fast::debug(true)->expireInSecond(10)->remember('key-of-page', function()
{
$html = 'Your HTML Goes Here.' . rand(1, 1000);
return $html;
});
return $content;
Forget your page cache.
Fast::forget('key-of-page');
Flush all cache.
Fast::flush()
Forget cache.
php artisan fast:forget key-cache
Flush all cache.
php artisan fast:flush
If you have any problems, Contact [email protected]