• <!– wp:paragraph –>
    <p>Hello, I am using this plugin on over 40+ sites and it is great. My cloudflare dashboard is overflowing.</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p>Today, for the 1st time, I couldn’t setup it and I don’t know why.</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p>I have 2 issues:</p>
    <!– /wp:paragraph –>

    <!– wp:list {“ordered”:true} –>

      <!– wp:list-item –>
      <li class=”wp-block-list-item”>When testing the cache it always says “Page caching seems not working for both dynamic and static pages.”. For the 1st time ever I read the Common Issues section and there was stated something about potential conflict with mu-plugins. But, seems like, this website doesn’t have any mu-plugins, nor the folder mu-plugins.
      <!– /wp:list-item –>

    <!– /wp:list –>

    <!– wp:paragraph –>
    <p>I don’t know, I have migrated the site from Siteground to Contabo since their cache was causing so many problems.</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p>I have checked the wp-config file also, and didn’t notice anything strange there, just the cache was disabled by siteground but I have enabled it.</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p>2. When trying the new tutorial with the 4 page rules, seems like the page doesn’t refresh when changing the query string (yes, the last rule enables to ignore the query string). Maybe it is related to the 1st issue, I don’t know. For example with filters in the product archive page or changing the pages (which change with query string in that particular Divi element).</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p>I have checked the htaccess file and the plugin writes there successfuly.</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p>I have tried to overwrite the headers option also and no luck.</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p>This is the htaccess file:</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p>Maybe it is not related but also cloudflare cant fix some mixed content on the website and I am using another plugin for that, which happened for the 1st time also…</p>
    <!– /wp:paragraph –>

    <!– wp:paragraph –>
    <p></p>
    <!– /wp:paragraph –>

    <!– wp:code –>

    # BEGIN WordPress
    # Директивите (редовете) между "BEGIN WordPress" и "END WordPress" са
    # динамчно генерирани и трябва да се промнят само чрез филтрите на WordPress.
    # Вяка промяна на директивите между тези маркери ще бъе заличена.
    RewriteCond %{REQUEST_FILENAME} -s
    RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9]
    RewriteCond %{HTTP_USER_AGENT} !Twitterbot/[0-9]
    RewriteCond %{HTTP_USER_AGENT} !Googlebot/[0-9]
    RewriteRule wp-content/uploads/woo-import-export(\/[A-Za-z0-9_@.\/&+-]+)+\.([A-Za-z0-9_@.\/&+-]+)$ [L]
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    
    # END WordPress
    # BEGIN WP Cloudflare Super Page Cache
    # Директивите (редовете) между "BEGIN WP Cloudflare Super Page Cache" и "END WP Cloudflare Super Page Cache" са
    # динамично генерирани и трябва а се променят само чрез филтрите н WordPress.
    # Всяка промяна на директивите между тези марери ще бъде заличена.
    <IfModule mod_headers.c>
    Header unset Pragma "expr=resp('x-wp-cf-super-cache-cache-control') != ''"
    Header always unset Pragma "expr=resp('x-wp-cf-super-cache-cache-control') != ''"
    Header unset Expires "expr=resp('x-wp-cf-super-cache-cache-control') != ''"
    Header always unset Expires "expr=resp('x-wp-cf-super-cache-cache-control') != ''"
    Header unset Cache-Control "expr=resp('x-wp-cf-super-cache-cache-control') != ''"
    Header always unset Cache-Control "expr=resp('x-wp-cf-super-cache-cache-control') != ''"
    Header always set Cache-Control "expr=%{resp:x-wp-cf-super-cache-cache-control}" "expr=resp('x-wp-cf-super-cache-cache-control') != ''"
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/xml "access plus 0 seconds"
    ExpiresByType text/xsl "access plus 0 seconds"
    </IfModule>
    <FilesMatch "\.(xml|xsl)$">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    <FilesMatch "robots\.txt">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_URI} ^(.*)?/wp-content/wp-cloudflare-super-page-cache/bgcraftsgallery.com/debug.log(.*)$
    RewriteRule ^(.*)$ - [F]
    </IfModule>
    <FilesMatch "wp-cron.php">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    # END WP Cloudflare Super Page Cache

    <!– /wp:code –>

    • This topic was modified 1 year, 11 months ago by snipsnip.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter snipsnip

    (@snipsnip)

    Sorry for the broken html, seems like the forum broke it after my edit…

    I noticed these in my wp-config file, at the top:

    if ( file_exists(ABSPATH . “wp-content/advanced-headers.php”) ) {
    require_once ABSPATH . “wp-content/advanced-headers.php”;
    }

    Thread Starter snipsnip

    (@snipsnip)

    And after removing them, the cache is working.

    I dont even have these php files in wp-content.

    Should I try to solve the 2nd issue now or its not related?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @snipsnip,
    If you are having issue with query string in then in the 4th cache rule uncheck the option of “Ignore Query String”.

    Happy to hear that your 1st issue has been fixed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some issues with the plugin for a first time…’ is closed to new replies.