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,045
    286
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +464
    Local Time:
    12:50 AM
    Nginx 1.15.0
    MariaDB 10.2.15
    @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

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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,045
    286
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +464
    Local Time:
    12:50 AM
    Nginx 1.15.0
    MariaDB 10.2.15
    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

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yeah just experienced it myself. Will have to investigate :)
     
    • Optimistic Optimistic x 1
  5. Itworx4me

    Itworx4me Premium Member Premium Member

    110
    12
    18
    Mar 14, 2017
    Ratings:
    +16
    Local Time:
    3:50 PM
    Nginx 1.15.X
    MariaDB 10.1.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.
     
    • Informative Informative x 1
  6. eva2000

    eva2000 Administrator Staff Member

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    thanks @Itworx4me

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

    Sunka Well-Known Member

    1,045
    286
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +464
    Local Time:
    12:50 AM
    Nginx 1.15.0
    MariaDB 10.2.15
    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

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  9. eva2000

    eva2000 Administrator Staff Member

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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,045
    286
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +464
    Local Time:
    12:50 AM
    Nginx 1.15.0
    MariaDB 10.2.15
    Latest Chrome
    Version 70.0.3538.110 (Official Build) (64-bit)
     
  11. eva2000

    eva2000 Administrator Staff Member

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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,045
    286
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +464
    Local Time:
    12:50 AM
    Nginx 1.15.0
    MariaDB 10.2.15
    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,045
    286
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +464
    Local Time:
    12:50 AM
    Nginx 1.15.0
    MariaDB 10.2.15
    1.png






    2.png
     
  14. eva2000

    eva2000 Administrator Staff Member

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  15. Itworx4me

    Itworx4me Premium Member Premium Member

    110
    12
    18
    Mar 14, 2017
    Ratings:
    +16
    Local Time:
    3:50 PM
    Nginx 1.15.X
    MariaDB 10.1.X
    I still see 17 new posts even after clicking on forum read button.
     
  16. eva2000

    eva2000 Administrator Staff Member

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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.
     
    • Optimistic Optimistic x 1
  17. eva2000

    eva2000 Administrator Staff Member

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    @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,045
    286
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +464
    Local Time:
    12:50 AM
    Nginx 1.15.0
    MariaDB 10.2.15
    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

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    37,261
    8,141
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,533
    Local Time:
    9:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    FYI, made a few more updates on both Cloudflare and PWA service worker cache configurations :)
     
..