Skip to content

fix: only register genero-woocommerce's views path when it exists - #500

Merged
oxyc merged 1 commit into
masterfrom
fix/genero-woocommerce-view-path
Nov 17, 2026
Merged

oxyc merged 1 commit into
masterfrom
fix/genero-woocommerce-view-path

Conversation

@oxyc

@oxyc oxyc commented Nov 17, 2026

Copy link
Copy Markdown
Member

wp acorn optimize runs view:cache, which walks every registered view path. genero-woocommerce registers resources/views, a folder this copy of the plugin doesn't have, so view:cache throws DirectoryNotFoundException and fails the deploy after the symlink. That left the object-cache flush, OPcache reset and Kinsta purge unrun on widetoes and medihealth today.

The old deploy step only cleared Acorn's caches (cache:clear:wp:acorn), so this never surfaced. The new purge order regenerates them (cache:wp:acorn).

Change

Register the genero-woocommerce view namespace only when resources/views exists.

Testing

php -l passes. After deploy, the deploy log's cache:wp:acorn shows views … DONE.

🤖 Generated with Claude Code

acorn optimize's view:cache throws on a registered path that doesn't
exist, which failed the deploy after the symlink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oxyc
oxyc merged commit 7c963c5 into master Nov 17, 2026
1 check passed
@oxyc
oxyc deleted the fix/genero-woocommerce-view-path branch November 17, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant