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

Include cache key when including unversioned css #1773

Merged
merged 2 commits into from Oct 28, 2021
Merged

Conversation

vboctor
Copy link
Member

@vboctor vboctor commented Aug 8, 2021

When including our css files that don't have a version in the name,
include cache key based on Mantis version.

Fixes #26148

When including our css files that don't have a version in the name,
include cache key based on Mantis version.

Fixes #26148
@vboctor vboctor self-assigned this Aug 8, 2021
@vboctor
Copy link
Member Author

vboctor commented Aug 8, 2021

I pushed to PR branch to MantisBT repository by mistake, so will leave it there and cleanup after merge.

@vboctor
Copy link
Member Author

vboctor commented Aug 8, 2021

A similar change is needed for inclusion of unversioned js files. I'm planning to do it once this PR is merged.

Copy link
Member

@dregad dregad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it would be better to move the cache key generation and concatenation logic to the html_css_link() function, and drive it with a bool $p_use_cache_key parameter (defaulted to false).

@vboctor
Copy link
Member Author

vboctor commented Oct 17, 2021

@dregad I pushed the refactored version.

@vboctor
Copy link
Member Author

vboctor commented Oct 26, 2021

@dregad friendly reminder. Planning to merge this weekend.

Copy link
Member

@dregad dregad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@dregad
Copy link
Member

dregad commented Oct 28, 2021

I pushed to PR branch to MantisBT repository by mistake, so will leave it there and cleanup after merge.

I have detached from #26148 the 2 changesets [1] that were created by the source integration plugin when you pushed to the issue26148_version_css branch in the mantisbt repo.

[1]: For the record:

@dregad dregad merged commit 43c5381 into master Oct 28, 2021
@dregad dregad deleted the issue26148_version_css branch October 28, 2021 16:51
CasN pushed a commit to CasN/mantisbt that referenced this pull request Aug 29, 2022
When including our css files that don't have a version in the name,
include cache key based on Mantis version.

Refactored `html_css_link()` to have cache param.

Fixes #26148, PR mantisbt#1773
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants