Package Data | |
---|---|
Maintainer Username: | teepluss |
Maintainer Contact: | teepluss@gmail.com (Teepluss) |
Package Create Date: | 2014-06-24 |
Package Last Update: | 2014-09-16 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-13 15:01:52 |
Package Statistics | |
---|---|
Total Downloads: | 10 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
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 teepluss@gmail.com