Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only checks the filemtime of the first versioned file in a template #4

Open
pc-erin opened this issue Jan 31, 2024 · 0 comments
Open

Comments

@pc-erin
Copy link

pc-erin commented Jan 31, 2024

Calling versioning() on multiple files results in all of the files using the same version id.

This seems to be happening because the filemtime result is being cached in the private property $_buildId.

If you still want to cache lookups, you could use an associative array with the file names as keys instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant