A have page site.com/status.php
And a lot of request send like site.com/status.php?hash=123123
That means page opens w/o cache using, but this page make a lot of sql queries, and i need to always use 30 min cache for users. So i think i just need to redirect users to page w/o hash parameter, so they will get cached page.
What should i use in page rules, to get that result?
But you could also create a rule for the status.php where the cache level is set to ‘ignore query strings’ which may be a more correct way of accomplishing your desired end result. You could possibly even set this caching level as your domain-wide setting if it doesn’t impact any of you other site behaviour.
Try choosing “ignore query string” in the caching section of your administration console. However, by default Cloudflare only caches static assets. So you may need to use a page rule with cache everything depending on your needs.
With that in mind, I think @saul’s idea to redirect to the correct URL and then (optionally) enabling cache everything on the correct URL with a separate page rule is a good one. This will force all visitors to the primary URL and leverage caching too.