For performance issues, we would like to enforce sites not to use the core module statistics in Drupal 6 and 7.

Comments

j0nathan’s picture

So far the quick solution is simply to remove the module folder (this is not the best way).

Here are the patches for Pressflow 6 and 7.

j0nathan’s picture

Status: Active » Needs review

Commit for Drupal 6:
http://drupalcode.org/project/kplatforms.git/commit/ba34b11

Commit for Drupal 7:
http://drupalcode.org/project/kplatforms.git/commit/c6c9867

I leave the issue opened "needs review" until I test it and in case someone has a better solution.

j0nathan’s picture

Status: Needs review » Reviewed & tested by the community

Tested.

j0nathan’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

j0nathan’s picture

Issue summary: View changes
Status: Closed (fixed) » Needs work
Related issues: +#2174953: Patching Pressflow 7.24 with Drupal 7.26
j0nathan’s picture

Patch for Pressflow/Drupal 7.26

git clone git://github.com/pressflow/7.git
cd 7/
git checkout pressflow-7.24
wget http://drupal.org/files/issues/diff-7.24-7.26.patch
patch -p1 < diff-7.24-7.26.patch
rm diff-7.24-7.26.patch
git add -A
git config user.email ...
git config user.name ...
git commit -a 'For 7.26'
rm -fr modules/statistics
git diff > 2007316-remove-core-module-statistics-7.26.patch
j0nathan’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit ba34b11 on 8.x-1.x, 8.x-2.x, lock by j0nathan:
    Issue #2007316 : Enforce not using core module statistics - Drupal 6.
    
  • Commit c6c9867 on 8.x-1.x, 8.x-2.x, lock by j0nathan:
    Issue #2007316 : Enforce not using core module statistics - Drupal 7.
    
  • Commit 37076cd on 8.x-2.x, lock by j0nathan:
    Updated Drupal 7 patch for issue #2007316 : Enforce not using core...
kienan’s picture

Patch for pressflow 7.33 with SA-2014-006 patch.