Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Pligg Donor ditto's Avatar
    Joined
    Dec 2007
    Posts
    40
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by Yankidank View Post
    All you have to do is change the "Show last visit" option to false from /admin_config.php?page=Story. This is something we should probably have switched off by default.
    I have disabled this an anything else related to page views, and still my pligg_pageviews table keep grow bigger and bigger for every day.

    This question has been asked many times before in this forum, and it would be nice to get some more information about it. Can we empty pligg_pageviews table without problems? Also please give us some more information about what else this table does and how it works.

  2. #12
    Casual Pligger gen3ric's Avatar
    Joined
    Jul 2007
    Posts
    91
    Thanks
    Received:1
    Given: 0
    I've had show last visit disabled since I installed but my pageviews table was still filling up at the rate of nearly 3MB a day so I disabled the stats plugin just dropped the table and haven't had any problems as a result.

  3. #13
    Pligg Donor ditto's Avatar
    Joined
    Dec 2007
    Posts
    40
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by gen3ric View Post
    just dropped the table and haven't had any problems as a result.
    Thank you for sharing! To be absolute sure about it: Does "dropped" mean that you deleted the table entirely?

  4. #14
    New Pligger maiti's Avatar
    Joined
    Feb 2008
    Posts
    24
    Thanks
    Received:0
    Given: 0

    Lightbulb

    Hello i think i fix it :smile: my pligg_pageviews table is not getting bigger anymore

    If i fix it.... here is the way how i did it

    (it worked for me on Pligg 9.8)

    first copy your user.php, user_center.tpl and pageview.php files somewhere.

    root/user.php delete
    1. lines from 54 to 56
    2. line 64
    3. lines from 66 to 93
    root/templates/yget/user_center.tpl delete
    lines from 399 to 406
    root/libs/pageview.php delete
    lines from 16 to 23
    few: i hope i helped

  5. #15
    Constant Pligger xiesi's Avatar
    Joined
    Jun 2007
    Posts
    223
    Thanks
    Received:0
    Given: 0
    it don't work for 9.9.0

  6. #16
    Senior Member peppolone's Avatar
    Joined
    Dec 2006
    Posts
    194
    Thanks
    Received:1
    Given: 0
    for 9.9 remove $pageview->insert(); from story.php

  7. #17
    Pligg Donor davemackey's Avatar
    Joined
    Aug 2007
    Posts
    226
    Thanks
    Received:0
    Given: 0
    I think we can actually remove more code than that. I commented out the following:
    // log the pageview
    // $pageview = new Pageview;
    // $pageview->type='story';
    // $pageview->page_id=$link->id;
    // $pageview->user_id=$current_user->user_id;
    require_once(mnminclude.'check_behind_proxy.php');
    // $pageview->user_ip=check_ip_behind_proxy();

    // find the last pageview
    // $last_visit = $pageview->last_visit();
    // if($last_visit != 0){$last_visit = txt_time_diff($pageview->last_visit(), time());}
    // $main_smarty->assign('last_visit', $last_visit);
    // $pageview->insert();
    Just to note: I like removing/commenting out unnecessary code as possible. There is no need to have processes running which will consume CPU cycles if we just want to disable the functionality anyways.
    David.

  8. #18
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    Thanks
    Received:1
    Given: 0
    There are three types of page views
    • One when you view a story on story.php
    • One when you click the story title to view the external link
    • And one when you view a profile


    You have to remove/disable the code for all three of these situations for your pageviews table to stop growing. It has been suggested above to turn off several features. That will not actually stop the table from getting larger. The table will continue to get larger even though you don't use it. Remove the table and the code completely to fix your problem.

  9. #19
    Casual Pligger netfreak's Avatar
    Joined
    Dec 2006
    Posts
    52
    Thanks
    Received:0
    Given: 0
    I think you can have a look on this you might like this one.. >>

    http://forums.pligg.com/core-develop...mizing-db.html

  10. #20
    Casual Pligger micxuy's Avatar
    Joined
    May 2007
    Posts
    87
    Thanks
    Received:0
    Given: 0
    I just comments out all the functions in user.php, out.php, user.php and libs/pageview.php

    Then delete database, it works cool

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. "pligg_pageviews" MySQL table
    By pligger2 in forum Questions & Comments
    Replies: 2
    Last Post: 02-27-2007, 09:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg