Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlemke committed Apr 24, 2020
1 parent a4477be commit 2e347e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Service/PixxioClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function updateFile(string $id, array $metadata): ResponseInterface
public function search(string $queryExpression, array $formatTypes, array $fileTypes, int $offset = 0, int $limit = 50, $orderings = []): ResponseInterface
{
$options = new \stdClass();
$options->pagination = $limit . '-' . intval($offset / $limit + 1);
$options->pagination = $limit . '-' . (int)($offset / $limit + 1);
$options->imageOptions = $this->imageOptions;
$options->fields = $this->fields;
$options->formatType = $formatTypes;
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ Tagging used assets of asset source "flownative-pixxio" via Pixxio API:
(tagged) nikhita-s-615116-unsplash 368 (1)
```
As already mentioned, it is recommended to run this command through a cron-job, ideally in combination with
the `media:removeunused` command.
It is recommended to run this command through a cron-job, ideally in combination with the `media:removeunused`
command. It's important to run the `removeunused`-command *after* the tagging command, because otherwise removed
images will not be untagged in the Pixxio media library.

Note: At this point, the auto-tagging feature is not really optimized for performance. The command merely
iterates over all assets which were imported from Pixxio and checks if tags need to be updated.
Expand Down

0 comments on commit 2e347e8

Please sign in to comment.