File tree 1 file changed +4
-10
lines changed
app/Http/Controllers/API/v2/FontAwesome/v5
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 7
7
use App \Actions \Image \TrimTransparentBorder ;
8
8
use App \Http \Controllers \Controller as Controller ;
9
9
use Illuminate \Http \Request ;
10
- use Illuminate \Support \Facades \Cache ;
11
10
12
11
class IconStackController extends Controller
13
12
{
@@ -17,15 +16,10 @@ class IconStackController extends Controller
17
16
18
17
public function show (Request $ request )
19
18
{
20
- $ cacheKey = md5 ($ request ->fullurl ());
21
- $ img = Cache::remember ($ cacheKey , function () use ($ request ) {
22
- $ size = $ request ->get ('size ' ) ?: 30 ;
23
- $ img = CreateIconStack::run ($ request ->all (), self ::SCALE , self ::FORCE_ODD_SIZE );
24
- TrimTransparentBorder::run ($ img );
25
- ResizeToHeight::run ($ img , $ size );
26
-
27
- return $ img ;
28
- });
19
+ $ size = $ request ->get ('size ' ) ?: 30 ;
20
+ $ img = CreateIconStack::run ($ request ->all (), self ::SCALE , self ::FORCE_ODD_SIZE );
21
+ TrimTransparentBorder::run ($ img );
22
+ ResizeToHeight::run ($ img , $ size );
29
23
30
24
return $ img ->response ('png ' );
31
25
}
You can’t perform that action at this time.
0 commit comments