Skip to content

Commit

Permalink
Enabled CLI opcode caching and improved opcode invalidation in valida…
Browse files Browse the repository at this point in the history
…tion.

The PHP.ini configuration has been updated to enable opcode caching for CLI (Command Line Interface). This will contribute to better performance when executing PHP scripts from the command line. Additionally, the opcode invalidation logic in the abstract validation class has been modified. Instead of invalidating the cache for schema file paths directly, it now correctly invalidates the cache for their string representation.
  • Loading branch information
SmetDenis committed Apr 9, 2024
1 parent dc9b846 commit 837ae9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ RUN time ./csv-blueprint --version --ansi \
&& time ./csv-blueprint validate:csv --help --ansi

# Warm up caches
# RUN time php /app/docker/build-preloader.php \
# && time php /app/docker/preload.php \
# && echo "opcache.preload=/app/docker/preload.php" >> /usr/local/etc/php/conf.d/docker-z99-php.ini \
RUN time php /app/docker/build-preloader.php \
&& time php /app/docker/preload.php \
&& echo "opcache.preload=/app/docker/preload.php" >> /usr/local/etc/php/conf.d/docker-z99-php.ini
# && time /app/csv-blueprint validate:csv -h \
# && time /app/csv-blueprint validate:schema \
# --schema=/app/schema-examples/*.yml \
Expand Down

0 comments on commit 837ae9f

Please sign in to comment.