Inside a hook, I’m loading an image from external source, after that I want to apply a specific template on it. Triggering the hook twice works, but is only necessary because triggering once gives the error mentioned above.
sleep() between these two steps, and it definitely happens in spite the image being there. That’s my code:
// Download takes like 2s, no problem .. $object->downloadCover($fileName); // full name sleep(15); $page->image($fileName)->update(['template' => 'image']);
any suggestions, ideas?
// Edit: It seems to check the moment being executed if the file is there, when started and file already exists, it completes the task even though in reality the image is being overwritten (thus, ‘new’)