Closed (fixed)
Project:
Boost
Version:
6.x-1.18
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2010 at 07:54 UTC
Updated:
31 Oct 2012 at 15:11 UTC
Node access counter does not work with Boost. When Boost is switched off node counter works again.
Comments
Comment #1
eTech commentedComment #2
mikeytown2 commentedenable the stats block
http://drupal.org/node/545908#blocks
Comment #3
mikeytown2 commentedclose this issue if this solved your problem, otherwise please give me more info.
Comment #4
joel_guesclin commentedI'm sorry but I don't understand this... I would like to get the "read counter" to work also. I am playing around on a test site. I have successfully installed Boost, and some pages are indeed cached.
Then I have turned on the statistics and read an article (ie a story) a few times using the admin user in order to bump up the page counter.
Then I got a bit confused and put the "Stats Block" in place but it did not show anything.
Then I switched off Stats Block and switched on "Popular Content", then configured it to show top 5 of everything. Then I switched it off, and switched on the Stats Block - but the Stats block does not show anything.
Is it in fact possible to increment the Read counter when Anonymous users read a cached page?
Comment #5
mikeytown2 commentedYes, it's possible. Place the "Boost: AJAX core statistics" block in a region; if it's still "disabled" then it won't work. Next go to admin/build/block/configure/boost/stats and make sure "Display Statistics" is checked. Save.
To test, flush the boost cache. Then go to node and view it a lot with another browser (should be cached by now), you should see the counter increase.
Comment #6
joel_guesclin commentedThanks, I've managed to get that working. I don't quite understand what the "Cache statistics" check box for the block does though. If I check this, does it mean that the block of "Most popular content" gets cached with the page, and if so when does it get updated?
Comment #7
mikeytown2 commentedOutput gets cached, gets updated on cron runs. If your running over a million nodes, running stats on that can take several minutes. Close this issue if you don't have any more questions.
Comment #8
joel_guesclin commentedThanks for the help - I've opened a different support call on general understanding issues
Comment #9
doublejosh commentedI just can't seem to get this block working :( I've been a Boost lover for some time.
Added the block to my admin region, enables show stats, refreshed the boost cache, visited the page a bunch, ran cron.
Perhaps I'm misunderstanding...
Does the block need to be placed on the page for anonymous users in order to count them?
And then this makes the normal counting works?
Or does this block display stats info?
Thanks.
Comment #10
mikeytown2 commentedBlock will do the counting as well as the display of the site-wide stats.
Configure this
admin/build/block/configure/statistics/0
Show block for specific roles: authenticated user
Go to admin/build/block/configure/boost/stats
Display Statistics: Checked
Show block for specific roles: anonymous user
Enable both blocks on admin/build/block/list; make sure the region is not disabled & you will want both to be next to each other in the same region.
Comment #11
szy commentedIs there any useful way to enable statistics with Boost?
Useful, because this:
... can't be called 'useful'. JS makes it working only for JS-enabled
browsers - what about other browsers, what about search bots?
Even if I set stats blocks to 'disabled', I get garbage in code:
Why stats cannot be launched quiet, 'in background', please?
Szy.
Comment #12
mikeytown2 commented@szy
Set the block title to
<none>Comment #13
szy commentedThere is title set to none, I promise :]
Szy.
PS. Brilliant module, thank you!
Comment #14
jcisio commentedMarking as fixed to avoid confusion ;)
Comment #16
adanelova commentedhi, I followed #4 and #5, but I cannot see the counter of node views. I can see the statistics - the last visited pages and so on, but not the counter. What could I do wrong?
Is it possible to count also anonymous visits while enabling this block only for administrator? I need to see the counter of total views of node, but I cannot let it see the anonymous visitor.
Thanks for module, it really made website much faster!
Comment #17
Rosamunda commentedHi there,
I´ve read the instructions of that block (and the comments above), and still, I didn´t understand it. It´s not n00b proof I guess :)
I don´t want any new block to appear, jut the normal statistics that appears at the links sections of each node, showing the overall reads count. I´m not using the "Popular content" block in any way either.
BTW, when it says
copy stats/boost_stats.php to your webroot, should I add that file besides the .htaccess file, right?I´m sorry I´m sure the instructions are very clear, but I´m a little newbie with the module and as I´ve already installed it in my production site, I want to carefully understand every single step before proceeding.
Thanks for any help and clarification!! :)
Rosamunda
Comment #18
erikwegner commentedSubscribing.
Comment #19
Rosamunda commentedAnyone?
Comment #20
bgm commentedI know it's been a while with no answer, but in case anyone else is searching:
* it's in a Block because it's the way the ajax request is included (and shown only for anonymous users). It requires the "statistics" core module to be enabled for it to work.
* you can copy the boost_stats.php in the same directory as the .htaccess, yes. This avoids bootstrapping all Drupal just to write the stats.