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

Use filename rather than ?v=123 #2

Open
9mm opened this issue May 12, 2014 · 3 comments
Open

Use filename rather than ?v=123 #2

9mm opened this issue May 12, 2014 · 3 comments

Comments

@9mm
Copy link

9mm commented May 12, 2014

I basically ignore query strings to prevent abuse on my varnish cache. I see you're already using a random hash for the filename... is it possible to just make the filename update with each change rather than incrementing ?v=123?

@9mm
Copy link
Author

9mm commented May 12, 2014

It would seem it uses both... I don't quite follow what triggers each one to change, but I think it's working now.

@9mm
Copy link
Author

9mm commented May 12, 2014

What i would love to know however is how to change the cache path from /wp-content/plugins/wp-minify-fix/cache to just something like /assets. is this possible?

I looked through the configs and tried a few things but no dice.

@nodecode
Copy link
Owner

You could create the folder manually and modify the source code of WP Minify Fix. You have to customize the contents of the variable $cache_location in line 41 of wp-minify-fix.php, as well as the variable $min_cachePath in min/config.php, then it should work.

In the next version, I'll probably integrate such a feature in the backend, as this has already been asked several times.

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

No branches or pull requests

2 participants