Title: Cache query string is only
Last modified: April 2, 2022

---

# Cache query string is only

 *  [matata](https://wordpress.org/support/users/matata/)
 * (@matata)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-query-string-is-only/)
 * Hi, I need cache url parameter.
    I have define in wp-config `define('WPFC_CACHE_QUERYSTRING',
   true);`
 * But…
    This page [Events](https://severacek.cz/udalost/) is ok… TTFB 90ms
 * This page [Past Events](https://severacek.cz/udalost/?past=1) is too caching,
   but on end of page is via php. And TTFB is 500ms.
 * Why is second page “via php”.
 * Htasscess code is :
 *     ```
       # BEGIN WpFastestCache
       # Modified Time: 02-04-22 6:47:26
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteCond %{HTTPS} =on
       RewriteCond %{HTTP_HOST} ^severacek.cz
       # Start WPFC Exclude
       RewriteCond %{REQUEST_URI} !\/rodice [NC]
       RewriteCond %{REQUEST_URI} !\/bc [NC]
       RewriteCond %{REQUEST_URI} !\/vybor-kps [NC]
       # End WPFC Exclude
       # Start_WPFC_Exclude_Admin_Cookie
       RewriteCond %{HTTP:Cookie} !wordpress_logged_in_[^\=]+\=ma.prochazka|matata
       # End_WPFC_Exclude_Admin_Cookie
       RewriteCond %{HTTP_HOST} ^severacek.cz
       RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WP_FASTEST_CACHE_CSS_VALIDATOR|Twitterbot|LinkedInBot|WhatsApp|Mediatoolkitbot)
       RewriteCond %{HTTP_USER_AGENT} !(WP\sFastest\sCache\sPreload(\siPhone\sMobile)?\s*Bot)
       RewriteCond %{REQUEST_METHOD} !POST
       RewriteCond %{REQUEST_URI} !(\/){2}$
       RewriteCond %{REQUEST_URI} \/$
       RewriteCond %{QUERY_STRING} !.+
       RewriteCond %{HTTP:Cookie} !wordpress_logged_in
       RewriteCond %{HTTP:Cookie} !comment_author_
       RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil
       RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
       RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
       RewriteCond /data/web/virtuals/211752/virtual/www/domains/severacek.cz/wp-content/cache/all/$1/index.html -f
       RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
       </IfModule>
       <FilesMatch "index\.(html|htm)$">
       AddDefaultCharset UTF-8
       <ifModule mod_headers.c>
       FileETag None
       Header unset ETag
       Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
       Header set Pragma "no-cache"
       Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
       </ifModule>
       </FilesMatch>
       # END WpFastestCache
       ```
   
 * On some websites it happens to me that there is a “via php” page without parameters.
   Why please?
 * Can you help me plese? Thank you.
    -  This topic was modified 4 years, 2 months ago by [matata](https://wordpress.org/support/users/matata/).
    -  This topic was modified 4 years, 2 months ago by [matata](https://wordpress.org/support/users/matata/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-query-string-is-only/#post-15520038)
 * this is not a bug. our system works like that.
 *  Thread Starter [matata](https://wordpress.org/support/users/matata/)
 * (@matata)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-query-string-is-only/#post-15520108)
 * Hi, thx for reply.
    I dont say, tha its bug.
 * Can you tell me please:
    - URl with parameter will be alway via php?
    - If is URL without parametr, when is page cache via php and whn without via
      php?
 * I don’t see much difference in page load speed when uncached and via php.
 * Thank you.
    -  This reply was modified 4 years, 2 months ago by [matata](https://wordpress.org/support/users/matata/).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-query-string-is-only/#post-15520113)
 * the page cache is served via htaccess instead of via php.
 * I recommend you to use permalink instead of query string like [https://severacek.cz/udalost/past/1](https://severacek.cz/udalost/past/1)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cache query string is only’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/cache-query-string-is-only/#post-15520113)
 * Status: not resolved