M
M
Maxim Fedorov2018-02-26 08:42:38
PHP
Maxim Fedorov, 2018-02-26 08:42:38

How to level the delay of non-instantaneous image compression?

I compress images using a PHP solution https://github.com/psliwa/image-optimizer _ _ _ _ in order for it to be displayed, you need to refresh the page (this is if hard caching is not enabled on the nginx side, otherwise it’s a disaster :). How to organize a chain so that the image is guaranteed to come to us?


Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
O. J, 2018-03-07
@Maksclub

It's better not to use php extensions at all, because this will create a load on php-fpm and etc anyway ... It's
better to install a watcher that will monitor the appearance of new images on the site and compress in the background without quality loss,
for example, this
https:/ /github.com/OrlovEvgeny/TinyJPG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question