• Hi,
    I setup the cache on https://www.lediligent.com after having tried W3 total cache.

    But the main page, as well as the menu, which contains lots of links, is not updated.
    It still présents me articles from a few days back.

    I have deleted the cache and activated the option New Post: Clear all cache files when a post or page is published.

    I need to publish more articles to see if it fully fixes the problem.

    This seems highly inefficient. Is this the way it should be configured?

    https://www.ads-software.com/plugins/wp-fastest-cache/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Emre Vona

    (@emrevona)

    Hi Cedricmi, let me tell you what I understood.

    “New Post:” is active but when you pubish new post, you cannot see it on homepage?

    Thread Starter Cedricmi

    (@cedricmi)

    Hi,
    Yes.
    If you go to my site, you’ll see on the front page 5 highlighted posts as well as a list of post.
    In addition you have a menu of topics.
    If you hover your mouse over, you’ll see a list of posts per topic.

    Now the problem is that nothing refreshes. Although I’m posting many new posts, the main page still show only posts from days ago.

    I get the addon to work with activating every option except for:
    – Logged-in Users: Don’t show the cached version for logged-in users (unselected)

    – Mobile: Don’t show the cached version for mobile device (unselected)

    – Gzip: Reduce the size of files sent from your server (unselected because my host provider forbids it)

    – Browser Caching: Reduce page load times for repeat visitors (unselected)

    My questions are:

    A. Is this normal that I have to deactivate browser caching?

    B. Is it normal that I have to activate new post, clear all cache files when a post or page is published?

    Plugin Author Emre Vona

    (@emrevona)

    Cedricmi, this problem is about browser. If you try it with another browser, you can see the new post.

    Please look at the /wp-content/cache/ when you publish new post. You will see that the cache is removed.

    Plugin Author Emre Vona

    (@emrevona)

    Hi again Cedricmi, I found the problem. If we don’t send header, server sends “304 header” so browser shows the cache.

    https://i.hizliresim.com/oQNBz2.jpg

    Can you copy the code below into .htaccess and inform me after testing please?

    <FilesMatch “\.(html|htm)$”>
    FileETag None
    <IfModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control “max-age=0, no-cache, no-store, must-revalidate”
    Header set Pragma “no-cache”
    </IfModule>
    </FilesMatch>

    Plugin Author Emre Vona

    (@emrevona)

    Please try this one.

    – add the code into .htaccess
    – refresh the page
    – publish new post

    <FilesMatch “\.(html|htm)$”>
    FileETag None
    <ifModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control “max-age=0, no-cache, no-store, must-revalidate”
    Header set Pragma “no-cache”
    Header set Expires “Wed, 11 Jan 1984 05:00:00 GMT”
    </ifModule>
    </FilesMatch>

    Thread Starter Cedricmi

    (@cedricmi)

    Hi Emre.

    Thank you for answering.
    Strangely, I had 3 different views of the homepage in 3 different browsers (Chrome, IE and Opera).

    I hava added the code in htaccess. So far it seems to work, I will confirm after a few days of testing.

    So to recap, the new code in ht access + the selected and unselected options as shown above are the right way to configure wp fastest cache?

    P.S. Here is the modified htaccess.
    Because it is the 3rd caching module I tried, perhaps something is wrong with it.

    # BEGIN WpFastestCache
    <FilesMatch “\.(html|htm)$”>
    FileETag None
    <ifModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control “max-age=0, no-cache, no-store, must-revalidate”
    Header set Pragma “no-cache”
    Header set Expires “Wed, 11 Jan 1984 05:00:00 GMT”
    </ifModule>
    </FilesMatch>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteCond %{REQUEST_URI} !^/wp-login.php
    RewriteCond %{REQUEST_URI} !^/wp-admin
    RewriteCond %{REQUEST_URI} !^/wp-content
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond REDACTED/public_html/wp/wp-content/cache/all/$1/index.html -f
    RewriteRule ^(.*) “/wp/wp-content/cache/all/$1/index.html” [L]
    </IfModule>
    # END WpFastestCache
    <IfModule mod_expires.c>
    # Enable expirations
    ExpiresActive On
    # Default directive
    ExpiresDefault “access plus 1 month”
    # My favicon
    ExpiresByType image/x-icon “access plus 1 year”
    # Images
    ExpiresByType image/gif “access plus 1 month”
    ExpiresByType image/png “access plus 1 month”
    ExpiresByType image/jpg “access plus 1 month”
    ExpiresByType image/jpeg “access plus 1 month”
    # CSS
    ExpiresByType text/css “access 1 month”
    # Fonts
    ExpiresByType font/ttf “access plus 1 year”
    ExpiresByType font/otf “access plus 1 year”
    ExpiresByType font/x-woff “access plus 1 year”
    # Javascript
    ExpiresByType application/javascript “access plus 1 year”
    </IfModule>
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Plugin Author Emre Vona

    (@emrevona)

    I have replicated this issue and many times I have heart this issue and I needed to fix it somehow ??

    Thread Starter Cedricmi

    (@cedricmi)

    Yes this is a problem I may have to go back to another plugin.

    After a new test, I don’t get the up to date version of the page unless I refresh it in Internet Explorer.

    I don’t know if it has anything to do with it but protection against Tracking is activated, I’ll try to find another computer without protection.
    Also I’m using CloudFlare + Jetpack’s Proton.

    Plugin Author Emre Vona

    (@emrevona)

    no no, there is no need to use another plugin.

    I have tested and it works fine. Here is result. https://i.hizliresim.com/lYP1ZB.jpg
    As you see, the header is 200. If the header is 304, it means that is cached version.

    Please test it with development tool which is opened with F12 button.

    Thread Starter Cedricmi

    (@cedricmi)

    Ok, I will test further in the next days.

    BTW, I see that most of the slowness come from external sources, mostly Discus but also Wordfence & google doubleclick.net

    Is there somehow a way to separate their scripts from the minified hmtl & js files so that they are called once the rest of the page has already been done?

    Plugin Author Emre Vona

    (@emrevona)

    Do you wanna load Google Ads after loaded the page?

    Thread Starter Cedricmi

    (@cedricmi)

    Please contact me per email. cedric [at] lediligent.com

    I have infos that may be of interest to you.

    Plugin Author Emre Vona

    (@emrevona)

    Hi Cedricmi, is everthing ok?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Homepage and menu are not actualized’ is closed to new replies.