« Last post by EzPortal on January 14, 2020, 10:17:10 pm »
Great glad that helped.
« Last post by Paul_123 on January 14, 2020, 09:31:26 pm »
« Last post by EzPortal on January 14, 2020, 09:44:10 am »
Posted an update to fix thanks for troubleshooting!!!
!Fixed new indicator for recent posts and recent topics block for SMF 2.0 to cache per user instead of global cached.
« Last post by EzPortal on January 14, 2020, 09:03:57 am »
You are right should be user dependent for recent topics and blocks.
I think setting caching time to 10 seconds would be safe. I might make the caching level 3 in order for the ezportal to turn on caching for those blocks.
The caching is mainly done to prevent high load or a lot of bots from slowing down the forum.
« Last post by Paul_123 on January 13, 2020, 09:47:44 pm »
The question about the caching helped.
First I just removed the if statement doing the cache lookup, so that there was a database call every time. And that worked to cleanup the issue.
So I got to looking at the data in the cache file. When I read a topic, that gets recorded in the database, however the cache files that are being saved appear to be user independent......meaning, how does ezportal know if the cache was saved based on my lookup, or the user lookup that loaded the page right before me? Should the cache file have a userid in the file name....such that only my information is saved.
Also, when writing the cache, it is putting a 300 second expiry, should this be 30 seconds like the Recent Posts? At which point is there any value in caching these entries at all?
Here is a diff of what I was describing.
« Last post by EzPortal on January 13, 2020, 04:55:05 pm »
Hmm, Ok will review and see what I can find out.
« Last post by Paul_123 on January 13, 2020, 04:53:04 pm »
Caching Level 1
Yes, Even if I stay Logged in, Don't actually visit any posts, And just refresh the page, the state of the "NEW" indicator will change.
« Last post by EzPortal on January 13, 2020, 01:53:35 pm »
What version of SMF? And what caching system setup in SMF what level?. Are you logged in same account?
« Last post by Paul_123 on January 13, 2020, 12:23:55 pm »
I just upgraded from 3.5 to 4.5.6b, and the new message indicator is randomly showing by the topics in the Recent Topic Ezblock. If I goto just the forum view and look at unread messages, the correct messages are shown.
Sometimes it shows correctly, sometimes it shows none as new, and other times it shows everything.
Not quite sure where to look at what is causing this.
« Last post by EzPortal on January 07, 2020, 08:21:08 am »
What type of device? It is based on user agent for blocking.
Powered by EzPortal