Unread posts are not marked read anymore?!

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Cause is Post #37 located here Admin Hub is really slow from time to time?! But I'll quote here

      Adam wrote:

      You may want to work with @Tracy Perry regarding the cache time. The seconds I gave you seem to cache too long in my browser & I seem to view a notice that I've dismissed (it's cached). He was always a bit better than I regarding the exact time limits for those things.

      This was in reference to this line of code:

      PHP Source Code

      1. # BEGIN Expire headers
      2. <ifModule mod_expires.c>
      3. ExpiresActive On
      4. ExpiresDefault "access plus 5 seconds"
      5. ExpiresByType image/x-icon "access plus 2592000 seconds"
      6. ExpiresByType image/jpeg "access plus 2592000 seconds"
      7. ExpiresByType image/png "access plus 2592000 seconds"
      8. ExpiresByType image/gif "access plus 2592000 seconds"
      9. ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
      10. ExpiresByType text/css "access plus 604800 seconds"
      11. ExpiresByType text/javascript "access plus 216000 seconds"
      12. ExpiresByType application/javascript "access plus 216000 seconds"
      13. ExpiresByType application/x-javascript "access plus 216000 seconds"
      14. ExpiresByType text/html "access plus 600 seconds"
      15. ExpiresByType application/xhtml+xml "access plus 600 seconds"
      16. </ifModule>
      17. # END Expire headers
      Display All
      Particularly the actual time in which things last in your cache. The above values are the generic values I originally saved which equal to about 30 days. Which is wonderful in static website (which is what I pulled it quickly from), but not idea in a dynamic content site such as a forum.

      I would suggest @Paul change those values to 15 or 30 seconds (leaving the top line 5). But @Tracy Perry gave me values sometime ago that worked wonderful, but I don't recall what those values where (I use nginx and I don't use these any longer).
      Disclaimer - Automatically assume that any link I copy & paste has a referral in it. Not because I'm the spamming type, but because I'm to lazy to edit them out or double check a really long url for that 1 snip of code.

      The post was edited 1 time, last by Adam ().

    • Throwholics wrote:

      Now it is working again... Strange...
      but I am more than sure it was not working...
      Maybe due to the host...not sure :(
      No, you likely refreshed your browser which resolved the issue for the time being. This issue is just the values that need to be corrected. I'm assuming people overlooked my post before.
      Disclaimer - Automatically assume that any link I copy & paste has a referral in it. Not because I'm the spamming type, but because I'm to lazy to edit them out or double check a really long url for that 1 snip of code.
    • Throwholics wrote:

      And its happening again..
      .The Cache is not correctly set :(
      It's going to be that way until @Paul fixes it (I'm not the admin, just someone giving helpful pointers). He can lower the values (as suggested) or if it truly is a problem, remove that small bit of code and keep the rest.
      Disclaimer - Automatically assume that any link I copy & paste has a referral in it. Not because I'm the spamming type, but because I'm to lazy to edit them out or double check a really long url for that 1 snip of code.
    • Throwholics wrote:

      Some things should be cached at all :D
      That's debatable. In a shared host (or high volume site), it's essential to cache what you can. Although if memory serves correctly, WoltLab Burning Board is one of those scripts that proves a bit problematic.

      I recall having an easier time caching vBulletin, Invision Power Board, and XenForo without any issues.
      Disclaimer - Automatically assume that any link I copy & paste has a referral in it. Not because I'm the spamming type, but because I'm to lazy to edit them out or double check a really long url for that 1 snip of code.
    • Throwholics wrote:

      Definitely not "unread posts"...
      Well, yes, that goes without saying (it's obvious). But the question lies on how WBB delivers that.

      HTML Source Code

      1. ExpiresByType text/css "access plus 604800 seconds"
      2. ExpiresByType text/javascript "access plus 216000 seconds"
      3. ExpiresByType application/javascript "access plus 216000 seconds"
      4. ExpiresByType application/x-javascript "access plus 216000 seconds"
      5. ExpiresByType text/html "access plus 600 seconds"
      6. ExpiresByType application/xhtml+xml "access plus 600 seconds"
      This is the part that most likely falls into that for WBB. Yet I can cache this in other developments without issue. The styles (theme / template) for example is something you usually would want to cache on a site.

      But as stated earlier, Paul can either find the correct values or completely remove everything starting with # BEGIN Expire headers and ending with # END Expire headers .

      Sort of wish @Tracy Perry would chime in. He gave me some working values before, but seems to be silent now.
      Disclaimer - Automatically assume that any link I copy & paste has a referral in it. Not because I'm the spamming type, but because I'm to lazy to edit them out or double check a really long url for that 1 snip of code.

      The post was edited 1 time, last by Adam ().

    • This coems directly from @SoftCreatR
      I use this and do not have any trouble

      SQL-Query

      1. ### Caching ###
      2. <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|svg|swf)$">
      3. ExpiresActive on
      4. ExpiresDefault "access plus 10 days"
      5. Header unset ETag
      6. FileETag None
      7. </FilesMatch>
      8. ### Komprimierung ###
      9. <IfModule mod_deflate.c>
      10. <FilesMatch "\.(html|htm|css|js|xml|php|txt|svg)$">
      11. SetOutputFilter DEFLATE
      12. </FilesMatch>
      13. </IfModule>
      14. ### Zuslich Komprimierung als gz ###
      15. <IfModule mod_headers.c>
      16. # Serve gzip compressed CSS files if they exist and the client accepts gzip.
      17. RewriteCond "%{HTTP:Accept-encoding}" "gzip"
      18. RewriteCond "%{REQUEST_FILENAME}\.gz" -s
      19. RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]
      20. # Serve gzip compressed JS files if they exist and the client accepts gzip.
      21. RewriteCond "%{HTTP:Accept-encoding}" "gzip"
      22. RewriteCond "%{REQUEST_FILENAME}\.gz" -s
      23. RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
      24. # Serve correct content types, and prevent mod_deflate double gzip.
      25. RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
      26. RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
      27. <FilesMatch "(\.js\.gz|\.css\.gz)$">
      28. # Serve correct encoding type.
      29. Header append Content-Encoding gzip
      30. # Force proxies to cache gzipped & non-gzipped css/js files separately.
      31. Header append Vary Accept-Encoding
      32. </FilesMatch>
      33. </IfModule>
      Display All
    • Throwholics wrote:

      Hello,

      there is one unread post for me right now. If i open it, it should be marked read but it doesnt.

      Only when I use the mark all as read checkmark.
      I can confirm this, has also happened to me, but I couldn't post it at that moment and after, I forgot it :pensive:

      Maybe it's related: today I've had issues with notifications, once I click a notification it should be gone but is there after visiting the thread.

      I'm using the latest stable version of Google Chrome: 51.0.2704.79 m (64-bit)

    • Throwholics wrote:

      This coems directly from @SoftCreatR
      I use this and do not have any trouble
      This would work nicely. :1f60e:

      So when completed the NEW htaccess would look like. That's Paul's original SEO rules, plus SoftCreatR cache, and my PHP error log.

      PHP Source Code

      1. #SEO_START
      2. <IfModule mod_rewrite.c>
      3. RewriteEngine on
      4. RewriteBase /
      5. RewriteCond %{HTTPS} off
      6. RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
      7. # Rewrite application /lexicon/
      8. RewriteCond %{SCRIPT_FILENAME} !-d
      9. RewriteCond %{SCRIPT_FILENAME} !-f
      10. RewriteRule ^lexicon/(.*)$ lexicon/index.php?$1 [L,QSA]
      11. # Rewrite application /filebase/
      12. RewriteCond %{SCRIPT_FILENAME} !-d
      13. RewriteCond %{SCRIPT_FILENAME} !-f
      14. RewriteRule ^filebase/(.*)$ filebase/index.php?$1 [L,QSA]
      15. # Rewrite application /directory/
      16. RewriteCond %{SCRIPT_FILENAME} !-d
      17. RewriteCond %{SCRIPT_FILENAME} !-f
      18. RewriteRule ^directory/(.*)$ directory/index.php?$1 [L,QSA]
      19. # Rewrite application /
      20. RewriteCond %{SCRIPT_FILENAME} !-d
      21. RewriteCond %{SCRIPT_FILENAME} !-f
      22. RewriteRule ^(.*)$ index.php?$1 [L,QSA]
      23. </IfModule>
      24. #SEO_END
      25. ### Caching ###
      26. <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|svg|swf)$">
      27. ExpiresActive on
      28. ExpiresDefault "access plus 10 days"
      29. Header unset ETag
      30. FileETag None
      31. </FilesMatch>
      32. ### Komprimierung ###
      33. <IfModule mod_deflate.c>
      34. <FilesMatch "\.(html|htm|css|js|xml|php|txt|svg)$">
      35. SetOutputFilter DEFLATE
      36. </FilesMatch>
      37. </IfModule>
      38. ### Zuslich Komprimierung als gz ###
      39. <IfModule mod_headers.c>
      40. # Serve gzip compressed CSS files if they exist and the client accepts gzip.
      41. RewriteCond "%{HTTP:Accept-encoding}" "gzip"
      42. RewriteCond "%{REQUEST_FILENAME}\.gz" -s
      43. RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]
      44. # Serve gzip compressed JS files if they exist and the client accepts gzip.
      45. RewriteCond "%{HTTP:Accept-encoding}" "gzip"
      46. RewriteCond "%{REQUEST_FILENAME}\.gz" -s
      47. RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
      48. # Serve correct content types, and prevent mod_deflate double gzip.
      49. RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
      50. RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
      51. <FilesMatch "(\.js\.gz|\.css\.gz)$">
      52. # Serve correct encoding type.
      53. Header append Content-Encoding gzip
      54. # Force proxies to cache gzipped & non-gzipped css/js files separately.
      55. Header append Vary Accept-Encoding
      56. </FilesMatch>
      57. </IfModule>
      58. # log to file
      59. php_flag log_errors on
      60. php_value error_log /location/to/php_error.log #Edit me as needed
      Display All
      Disclaimer - Automatically assume that any link I copy & paste has a referral in it. Not because I'm the spamming type, but because I'm to lazy to edit them out or double check a really long url for that 1 snip of code.
    • Throwholics wrote:

      Yes this would be better.
      And to be honest, you only need this once and not in every dir for every application as you said before ;)
      Has something changed? The last I knew you needed the rewrite rules for each individual app installed. And as previously discussed on WoltLab's support forum, the included the cache values as it was proven via Website speed test that without them, things didn't always cache right.

      I'm still using an older version of WoltLab, but if something has changed... I could find myself updating.
      Disclaimer - Automatically assume that any link I copy & paste has a referral in it. Not because I'm the spamming type, but because I'm to lazy to edit them out or double check a really long url for that 1 snip of code.
    • Adam wrote:

      Has something changed? The last I knew you needed the rewrite rules for each individual app installed
      Have a look ... the


      Source Code

      1. # Rewrite application /
      2. RewriteCond %{SCRIPT_FILENAME} !-d
      3. RewriteCond %{SCRIPT_FILENAME} !-f
      4. RewriteRule ^(.*)$ index.php?$1 [L,QSA]
      5. </IfModule>
      If you only have this code then you need that for every application
      but as you can see above he has all the applications already included in the main htaccess

      So no need for more than one in the root
    • The more I read, the more I distrust @Alexander Ebert

      We'll leave it at that. :1f621:
      Disclaimer - Automatically assume that any link I copy & paste has a referral in it. Not because I'm the spamming type, but because I'm to lazy to edit them out or double check a really long url for that 1 snip of code.

      The post was edited 2 times, last by Adam ().