Forum Replies Created

Viewing 15 replies - 121 through 135 (of 1,842 total)
  • Plugin Author Raul P.

    (@alignak)

    Depends on your provider or how you are caching the pages.

    If it’s not clearing, probably your hosting is not supported, so you would need to do it manually. If you don’t have a cache plugin, I suggest asking your hosting how to purge the cache.

    Plugin Author Raul P.

    (@alignak)

    You deleted the cache files for the css and js files, but not for the html pages. Check if your hosting is caching your page, or if some other plugin is doing it.

    If you delete the css js files and don’t delete the page cache, the page will still be pointing to the deleted files.

    Plugin Author Raul P.

    (@alignak)

    At the moment, you would need to disable the header cleanup option.

    This option removes it, because a lot of plugins and themes add way too many preload headers, thus the browser is actually busy loading unnecessary stuff.

    But I understand it breaks manual coding, sorry about that.
    I will add a separate option for that soon.

    Thanks for reporting

    Plugin Author Raul P.

    (@alignak)

    Thank you for reporting.
    The code is being minified by PHP Minify and it looks correct to me.

    What does not look correct is your original code, are you sure that is supposed to look like that?

    Your original indented code:

    cb.cmd.push(function() {
        cb({ 
            playerId: "1c29db-b110-4350-9460-5346a3b47" }).render("612e04d63a69bed46a146c9a4") 
        })
    	
    	};
    	});
    }

    where

    };
    });

    is incorrect, or perhaps you did not post the whole code.
    This is either added incorrectly, or there should be some code before.
    For every } there should be an { usually, as well as for ( and ).
    The semicolon, can be replaced with a line break, in some cases too.

    Plugin Author Raul P.

    (@alignak)

    If when you deactivate the plugin the files return to cloudfront, then that would mean the files are already on cloudfront, so there should be no need to add it again. If you already use some other plugin to rewrite the paths, then you probably don’t need to do it again.

    Can you clarify.

    Your domain, cdn subdomain, screenshot of FVM settings.
    URLS for the css files in incognito mode, before and after enabling the cdn setting on fvm.

    Plugin Author Raul P.

    (@alignak)

    There is a bug with your theme development, or the developer that edited it, forgot to change the query string.

    Currently, you would need to exclude all files under your theme directory by adding /themes/yolanddesign/ to the css and js ignore list, however, the real reason why this happens, is that your theme css and js files change the query string on every pageview.

    For example:
    https://bramleyappledesign.co.uk/wp-content/themes/yolanddesign/fw/js/swiper/swiper.css?rnd=2142481582

    The ?rnd=2142481582 changes on every time you refresh the page, and this is wrong.
    Tell your developer to remove the rnd query from the enqueued assets, so that they can remain static and not change on every pageview (do not install another plugin to remove the query strings… they guy added it with code, so he needs to edit it again, or ask the theme author).

    Plugin Author Raul P.

    (@alignak)

    You would have to manually check the cache directory for similar file sizes and open a few of them to inspect them and comparison.

    You can post your site url and I can take a quick look. If it’s visible, I will let you know.

    Plugin Author Raul P.

    (@alignak)

    That’s probably some server setting, not the plugin.
    But to my knowledge, cache enabler uses gzip to compress the cache files, so check if you have enabled that option.

    Plugin Author Raul P.

    (@alignak)

    Hi,

    I’m not sure I understood, what top line is disappearing?

    Does `<script async class=”cmplazyload” data-cmp-vendor=”s26″ data-cmp-src=”https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX”&gt;
    </script>` disappear completely?

    If that is the case, it may be because the script has no valid src attribute.
    In that case, I suggest you change your markup to dynamically create the element based on your consent rule.

    For example, something like this, but wrapped under your condition:

    let script = document.createElement('script');
    script.src = "https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX";
    document.body.append(script);
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'G-XXXXXXX', { 'anonymize_ip': true });
    
    Plugin Author Raul P.

    (@alignak)

    If you have dynamic css or js files, those keep changing every time it’s minified and it’s a new file. You would need to manually check which file keeps changing and exclude it from minification.

    It’s also possible that all your pages have different css or js files, in which case, you will need a set of minified files per page. You can disable merging and see if it helps.

    It’s also safe to periodically delete the cache directory, as it will be rebuilt.

    Thread Starter Raul P.

    (@alignak)

    @theabhig Hi, the version currently running is version 5.0, because on 5.1 and above, it breaks. This means, all versions until 5.2.3 (latest) are also broken. Thanks

    I tried to create a ticket… but then it shows “something went wrong” and it failed to create it, without chance to resubmit (so everything I wrote is gone).

    Thread Starter Raul P.

    (@alignak)

    @mikedmoore that was the reason why I contacted. It only works up to 5.0, after that all versions stopped enqueuing the stripe script and the button won’t show up. It shows while logged in as administrator, but not while not logged in or incognito mode. Thanks

    Plugin Author Raul P.

    (@alignak)

    This is not practical, because some file names can be invalid.
    But if you want to know which file is it, just click on it and open it on the browser.
    There is a comment showing where does it come from.

    Plugin Author Raul P.

    (@alignak)

    @mike8040 if you change some css file, you must purge all caches, always, regardless of using FVM or not, else you won’t see those changes consistently.

    Files don’t require a query string. Query strings should not exist on static files.
    If the file contents changed, FVM will rename it differently. The filename, is an hash of the code it was merged. But the minification is cached, to speed things up, that is why you need to purge the caches after modifying files.

    The file renaming, is already the cache busting mechanism.

    What problem exactly are you facing?
    It sounds like you simply did no purge the caches properly.

    @devopti the files are not deleted after 24 hours. If you don’t have the immediate purge enabled, it will only delete files older than 24h, at the time of the purge.

    Minified files are static files with dynamic url’s, which may disappear anytime.
    FVM needs to be able to purge the page cache, else your page caching is pointing to the wrong files. Whenever there is a FVM cache purge, you need to purge the HTML cache globally.

    If you wan to increase the limit, then you can edit the functions.php file on line 540 and replace 86400 with the desired amount of seconds.

    But hold on for that, there will be an update in a few days and I will extend this to 7 days for broader compatibility.

    Plugin Author Raul P.

    (@alignak)

    Hi,

    Fastcgi cache is for page cache, so the location doesn’t need to be public as long as nginx is aware if it.

    Static files, such as the ones generated by FVM need to be publicly accessible over the internet, so it’s not the same thing. How would you deliver the files from /var/run if that directory is not publicly available (and should not be)?

    If your disk is slow, you can always create a tmpfs partition and mount it on the wp-content/cache directory.

    If you are on ubuntu, instead of /var/run you likely would want to use /dev/shm instead, to keep the /var/run directory free for your unix sockets (such as mysql for example).

    Ex:
    https://wp-rocket.me/blog/mount-folder-ram/
    https://docs.oracle.com/cd/E18752_01/html/817-5093/fscreate-99040.html

Viewing 15 replies - 121 through 135 (of 1,842 total)