• matata

    (@matata)


    Hi, I need cache url parameter.
    I have define in wp-config define('WPFC_CACHE_QUERYSTRING', true);

    But…
    This page Events is ok… TTFB 90ms

    This page Past Events 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 ago by matata.
    • This topic was modified 4 years ago by matata.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Emre Vona

    (@emrevona)

    this is not a bug. our system works like that.

    Thread Starter matata

    (@matata)

    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 ago by matata.
    Plugin Author Emre Vona

    (@emrevona)

    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

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

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