Want more timely Centmin Mod News Updates?
Become a Member

Forum cache

Discussion in 'Forum Feedback & Suggestions' started by Sunka, Dec 2, 2018.

  1. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:25 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    @eva2000
    you change something related to cache of this forum in past few days.
    If I open forum page, no new post is showing as a number on submenu.
    Page is loaded from old cache.


    Similiar to that, when I read new posts, it not get readed, still show as new
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    It's probably related to PWA service worker caching Added Forum PWA Mode For Page Speed Improvements. but it shouldn't be something that just started to happen as PWA has been implemented since end of July, 2018. Though a few weeks ago I did update Xenforo to 1.5.22 and update PWA service worker for compatibility. So not sure.
     
  3. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:25 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    When I open forum today (minute ago), I have to refresh cache (ctrl + F5) to see is there new posts at all (alerts too).
    It started few days ago
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah just experienced it myself. Will have to investigate :)
     
  5. Itworx4me

    Itworx4me Active Member

    299
    27
    28
    Mar 14, 2017
    Ratings:
    +48
    Local Time:
    10:25 PM
    Nginx 1.25.X
    MariaDB 10.6.X
    I experience this on my Iphone but not on the computer. When browsing this site it says I have 17 new posts when in fact there a much fewer posts. Clicking on forum read button doesn't help either. Still have 17 new posts.
    Hope this helps.
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    thanks @Itworx4me

    seems it's a bit better today cache wise for me.
     
  7. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:25 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    It is starting to be annoying :meh:
    Mark forums read make same number of new posts and alerts.
    Every time I open this forum, I have to make hard refresh (ctrl + F5) to show number of new posts/alerts o_O
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  9. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Or instead of disabling PWA via preferences, try force updating the service worker itself via chrome devtools > applications > check update on reload and then reload page once and uncheck check update on reload after

    upload_2018-12-4_7-39-16.png

    Also you can try clearing PWA service worker cache under devtools > Application > Clear Storage

    upload_2018-12-4_7-41-43.png

    btw, which web browser you using ?
     
  10. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:25 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Latest Chrome
    Version 70.0.3538.110 (Official Build) (64-bit)
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try one of the 3 options outlined above either disable PWA service worker from user preferences, clear service worker cache or force service work update on reload via devtool > Application tab
     
  12. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:25 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Tried last two
    And same.
    I see that correct number of new posts are here on this thread, but when I open main page (Centmin Mod Community Support Forums) it shows me new (but old) 4 posts and 2 alerts.

    This started 4-5 days ago
     
  13. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:25 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    1.png






    2.png
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  15. Itworx4me

    Itworx4me Active Member

    299
    27
    28
    Mar 14, 2017
    Ratings:
    +48
    Local Time:
    10:25 PM
    Nginx 1.25.X
    MariaDB 10.6.X
    I still see 17 new posts even after clicking on forum read button.
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you mean after disabling PWA in preferences ? It might be related to Cloudflare cache + PWA mix, I just made a change on both sides so see if that helps.
     
  17. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @Sunka @Itworx4me by any chance do you frequently log out and log back into the forums ? it could be due to PWA cache not be able to differentiate between logged in vs logged out users and fact that Cloudflare I have setup bypass cache on cookie so that CF caches everything including dynamic requests for guests and uses Cloudflare Railgun to accelerate dynamic requests for logged in members.
     
  18. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:25 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Same here, I disabled PWA in preferences, but right number of new posts/alerts show only when I refresh page, until that just remember last cache.

    I do not logout/login at all
     
  19. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try clearing PWA service worker cache under devtools > Application > Clear Storage now after I did most recent update

    [​IMG]
     
  20. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, made a few more updates on both Cloudflare and PWA service worker cache configurations :)