• Resolved teambelieverse

    (@teambelieverse)


    Hello There,

    I’m using PHP 8.1 and NGINX Web Server for my website. Even after setting up Hummingbird properly cache file is always 0. I’ve tried reinstalling the plugin, restarting web server, php-fpm etc. I’ve also connected Redis, still cache file is always 0.

    What can I do to solve this?

    • This topic was modified 2 years, 8 months ago by teambelieverse. Reason: removed page link
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @teambelieverse

    I hope you’re well today!

    Since you are using Redis, is Hummingbird connected to Redis? If not, please make sure it is connected. You’ll find connection configuration on “Hummingbird -> Caching -> Integrations” page. The same applies to CloudFlare if you are using it.

    If this doesn’t help, then it would mean that there’s something happening on site that prevents Page Cache. Usually it’s some “ongoing” AJAX request or cron task (that is in some way related to page generation/rendering).

    By “on going” I mean for example ajax-request that is made over and over again even when page is loaded (that can be e.g. some chat on page) but I cannot tell for sure without checking the site.

    So if those Redis/CloudFlare connection don’t help, could you please provide a link to your site so we could visit it and take a look?

    Best regards,
    Adam

    Thread Starter teambelieverse

    (@teambelieverse)

    I saw that disabling NGINX FastCGI cache helped with page caching and now the number increases. However, I still see that the page cache expires faster than “Clear cache timing” even without making any changes to the site.

    How can I make the page cache working alongside NGINX FastCGI cache?

    How can I make the page cache persistent?

    and how can I send you the website link privately?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @teambelieverse

    I hope you are doing well.

    Can you please try:

    <?php 
    
    add_action( 'delete_transient_wphb-processing', function(){
    remove_all_actions( 'wphb_clear_page_cache', 10 );
    } );

    You can install it a mu-plugin:

    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    How can I make the page cache working alongside NGINX FastCGI cache?

    Both caches working at the same time can cause some delay in the plugin to cache the pages, however, it is a good practice to do an A/B test and see what performance better on your site, both at the same time, only Nginx cache, only Page caching.

    How can I make the page cache persistent?

    Can you try that shared code? There is a known situation in the plugin which is going to be improved in the upcoming version: https://wpmudev.com/roadmap/#hummingbird

    and how can I send you the website link privately?

    Kindly before it, test the suggestion and let us know if that worked well.

    Best Regards
    Patrick Freitas

    Thanks Patrick. I had tried that option but didnt have any luck with that either. I am trying out some of caching avenues instead. Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cache files 0 most of the times’ is closed to new replies.