Download & Extend

Cache ignores HTML vs. Drush

Project:Coder
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

0. Install and configure Drush.
1. TRUNCATE cache_coder.
2. Run a review via the browser.
3. Run the same review via Drush.

Results: Drush results contain HTML, from the cache created in step 2. The opposite is also true:

1. TRUNCATE cache_coder.
2. Run a review via Drush.
3. Run the same review via the browser.

Results: Browser results contain plain text results from Drush.

Comments

#1

I wonder if this is the same root cause for my problem?

For Mailhandler, I have mailhandler.coder_ignores.txt, and if I change any of the lines in this file, the changes do not get picked up by Coder- it seems that something is being cached.

To reproduce:

  1. Create an ignores file, and add one ignore line.
  2. Run code review- Coder will properly report "1 warning flagged to be ignored".
  3. Add one more ignore line to the ignores file. You can even clear caches via the GUI at this point, it doesn't matter.
  4. Run code review again- Coder still reports "1 warning flagged to be ignored".
  5. Edit coder.module and insert dsm($ignores); after $ignores = coder_get_ignores(); - this somehow forces coder to pick up the changes...
  6. Run coder review again- now Coder properly reports "2 warnings flagged to be ignored".

This is very consistent and reproducible. Does it sound the same, or should I open a new issue?

#2

Re: #1: I have confirmed that clearing all caches via admin toolbar does not clear the coder_cache table. If I manually empty this table, then new ignore lines get picked up. Oddly, however, only changes to 'core' ignores (style, sql) get picked up. 'Plug-in' ignores (coder_tough_love) still seem to be getting cached. #1394024: Ignored lines not respected for rules with callbacks

nobody click here