Test
This commit is contained in:
parent
a25a9ec0db
commit
92439a4cdb
2 changed files with 2 additions and 3 deletions
|
@ -70,8 +70,7 @@ class PublicController extends BaseController
|
||||||
|
|
||||||
|
|
||||||
//Return from s3, takes a loooong time
|
//Return from s3, takes a loooong time
|
||||||
$resizeJob = new ResizeImage((integer)$image->id, $size);
|
ResizeImage::dispatchSync($image->id, $size);
|
||||||
ResizeImage::dispatchSync($resizeJob);
|
|
||||||
|
|
||||||
$r = $this->tryReturnFromCache($cacheName."_".$size, $tenant->id, $gallery->id, $image->id);
|
$r = $this->tryReturnFromCache($cacheName."_".$size, $tenant->id, $gallery->id, $image->id);
|
||||||
if($r != null) {
|
if($r != null) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ class ResizeImage implements ShouldQueue
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct($image_id, $size)
|
public function __construct(int $image_id, int $size)
|
||||||
{
|
{
|
||||||
$this->image_id = $image_id;
|
$this->image_id = $image_id;
|
||||||
$this->size = $size;
|
$this->size = $size;
|
||||||
|
|
Loading…
Reference in a new issue