Append current query string to private file urls?

If I use template_preprocess_file_link, can I add the current url query string and append it to the link per user? Will this link be cached for all users? Update: This appends it, but does seem to get cached: if (preg_match(‘/private:\/\//i’, $file_entity->getFileUri())) { $query = \Drupal::requestStack()->getCurrentRequest()->query->all(); if (!empty($query)) { $options[‘query’] = $query; } } $variables[‘link’] =…

Custom PHP page form data is not appearing as a wp-theme page template

I have made an age calculator using PHP. It works fine in localhost/age/age-calculator.php I have moved this file as a wp theme-page-template theme/mytheme/page-template/age-calculator.php <?php get_header(); /* Template Name: Age Calculator */ Create a page and linked with this page-template. The input forms working nicely but when submit data. WordPress doesn’t show me any result and…