Closed (fixed)
Project:
Mollom
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2010 at 11:39 UTC
Updated:
24 Apr 2014 at 17:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sun#717874: Provide exportables for Mollom forms also touches those code lines. Not sure which one I'm going to tackle in-depth first.
Clearing would only have to happen after submission of Mollom's own administrative forms, I think. Unless those are submitted, the protected forms and their configuration should be the same as before.
--
However, I again have this issue here (as in some other core patch)... we are replacing a query with a query here, no? - oh, kkk... you want to prefetch or cache it away in memcached or whatnot, I understand ♥
Comment #2
catchYeah this is another one that's a no-op with db-caching but helps when you use a non-sql caching backend, and even more when you use non-sql field storage ;)
Comment #3
dries commentedDoes that warrant a code comment? :)
Comment #4
litwol commentedqueuing to run tests.
Comment #6
sunWe need to cache a little more for mollom_form_alter(), because there's a second form alter happening for delete confirmation forms. So while this patch catched the list of protected forms and mollom_form_load(), it still resulted in a second cache lookup for the delete confirmation form mapping.
Attached patch re-implements caching to account for all of that. It should result in 1 cache lookup for a unprotected form, and an additional lookup for every protected form.
Comment #7
sunWhite-space hiccup.
Comment #9
sunhah, nice. Learned something new about my code. :)
Comment #10
sunWorks! :)
Comment #11
sunerr, oopsie. :-|
This will still output multiple warnings, in case we alter multiple protected forms on a single page.
Powered by Dreditor.
Comment #12
sunFixed #11.
Comment #13
dries commentedCommitted to CVS HEAD. Thanks.
Comment #14
sunSo this would be the cleaner variant.
Comment #15
sunCumulative backport to D6.
Comment #16
sunThanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
Comment #17
sunOne more tiny tweak -- we don't need to invoke all hook_mollom_form_list() implementations in mollom_form_load(), as we already know from which module to retrieve the data.
Comment #18
sunThanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.