![]() |
I never noticed before, but a member had pointed out to me that the thread views are showing as "0". Since I never notcied this before, I'll have to have a look at the CRON script I made.. Maybe I missed somehting, unless it was always that way.
Just looked and I have the threadview stuff where it should be.. It's the only thing that's not showing properly apparently. I have both the following as it should be in the CRON script.. PHP Code:
PHP Code:
PHP Code:
|
You missed something. That's why I have an option in the settings instead of doing it via cron job. ;)
|
Quote:
|
It works fine for me and everyone else. You missed something in your script. Look at the install file and see what you forgot to add. ;)
|
I just chekced in phpMyAdmin and actally that's correct which I don't get.. The SUM does return 0. But, If I look at the threadviews table, there are numerous rows (pages of them).. But, thread.views is set to 0 for all threads. Would I be able to do a COUNT on the threadviews table and get the same result?
I looked in the install file again and everything relating to thread views is where it should be (that I saw anyhow). |
If it is showing 0 for thread views in the table, then you have something else going on. As long as you have this query:
PHP Code:
PHP Code:
HTML Code:
$statscache[getthreadviews] Try this: Take the cron job off for this and set it up like in the install file and let it run for a few minutes and see if they start showing up then. Make sure to set the cache update time to 0 to test it. |
Quote:
I'd already changed it to do a COUNT on the threadviews table and now it's showing thread views as "2,827". I have thread views set to update hourly and noticed that the threadviews table's used for hourly updates instead of updating thread.views immediately upon viewing. PHP Code:
|
I had to add
PHP Code:
It's the only cron that wasn' running properly for one reason or another, promotions, ban removal, etc. were all being done. |
See? that's what happens when you take a hack that wasn't meant to be run by cron job and try to do it that way. At least you got it working your way now. ;)
|
Quote:
I put them all into the real CRON though because it's better then running hrough a fake CRON. All is well now though. :D |
All times are GMT. The time now is 07:41 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:
|