![]() |
The cache is a blessing, but sometimes it makes pull your hair.
I don't know how long it takes to update the cache, I'm still seeing zeros. But on the testboard it's not running a cache: Average visits to this page Hourly 0.00 Daily 0.01 Weekly 0.05 Monthly 0.22 Yearly 2.63 Isn't that displaying it the wrong way? I expect hourly views to rise faster than yearly views? Hmm, I'm putting it wrong. Those are totals/averages for a hour-year right? When I do a fresh install with all counters set to zero, I guess I would see the hourly counter to go up first. ... erm... is it because our site is over 11 years old already with all old average data being 0? I can see hourly visits stay at 0 then, there will be loads of 0 visit hours in 11 years. Edit: I set it to yesterdays date, reset the counter to 0 and did a few page refreshes Average visits to this page Hourly 0.25 Daily 6.05 Weekly 42.33 Monthly 183.93 Yearly 2,207.15 It doesn't make much sense to me? Shed some light on this please? It's going to be query intensive I guess (though you can probably go around that with a cron that updates it once an hour). There would be 5 fields: one for an hourly counter and that gets life update. A field for day, week, month, year. After each hour the cron adds the hour value to the day value and the hour is reset to 0. After 24 hours the data from day is copied to week and resets to 0. And so on. That makes it totals and not averages. |
Quote:
|
Quote:
|
Quote:
|
This one Boofo? Site Life Status Forumhome Page Views Counter.
Something like the active users template isn't held back by the Cache. The Sidebar in the Suite gets refreshed with new content and so does forumviews. So, there should be an possibility somewhere? The currently active users are served from the FORUMHOME template. My 1st guess is that that template is somehow exempted from the cache. Paul M made hacks to show users who were online in the last 24 hours. I'm at best an armchair coder myself, but I guess he got some plugins that arrange cache for his templates and those bypass other cache systems. I just installed his hack and then logged in with an useraccount: the page was updated immediately with the new name, despite the cache. |
When you figure out how to have the datastore work like that with caching enabled, please let me know.
|
:)
I'm sure you've searched high and low already Boofo. When and if I ever figure it out, I'll let you know. |
Quote:
|
Running queries each time isn't great either Boofo.
There's also a cron and query option. The hack is on my page for a day now and it's still zero. I've no idea how long the memcache is going to last, it's a day already. I'ld like a modification where the views for the actual day are displayed and the total views since the site is created. A cron could update/flush (I've little idea what's going on) the daily data once an hour and the total will be updated once a day (the daily one is then reset to zero). I'm guessing I miss something special about the datastore too? |
Quote:
|
All times are GMT. The time now is 05:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|