Closed (fixed)
Project:
Comment Info
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Oct 2006 at 09:46 UTC
Updated:
15 Apr 2007 at 22:01 UTC
Jump to comment: Most recent file
when caching is enabled, sometimes the anonymous comment form gets filled up with information from another user. it returns to normal after clearing the cache table.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | field_caching.patch.txt | 474 bytes | luperry |
Comments
Comment #1
psicomante commentedI get the same problem. Can the content not to be cached?
Comment #2
luperry commentedsorry, I forgot to update this.
I tracked down the problem and fixed it myself. here is a patch. it's pretty simple, just use "default_value", instead of "value".
Comment #3
mfer commentedHow can this value not be cached by going with #default_value? Isn't that the reason it can show up on other users pages? The caching.
Comment #4
luperry commentedcurrently it uses #value instead of #default_value. #default_value is filtered by drupal, #value is what gets cached.
but yes, you are correct, after further testing, it seems like it still doesn't fix the problem. I had expected drupal to filter #default_value after it caches the page, it seems this is not what's happening.
Comment #5
mfer commentedTo avoid caching the way to go with this might be to have jquery do it.
Comment #6
Christoph C. Cemper commentedIs this in the 5.x version? still got the same troubles
is this info being sent out in the html form? I thought they do it via cookie/JS
Comment #7
mfer commentedThe reason for the problem is that the info is stored in session and when caching gets turned on the info can be put into the cached page that everyone who sees the cached page will see.
Doing it with JS and a cookie is completely possible. Especially, not that jQuery is in core. I keep planning to write this. Maybe that will be my drupal task for the weekend.
Oh, and the problem is in 4.7 and 5.
Comment #8
mfer commentedI spoke with Cainan about this. We are going to offer an option to have the remembering done via jQuery. This will only work in web browsers with javascript enabled but shouldn't run into the caching problem.
Comment #9
mfer commentedThere is now a second method to save the users information via jQuery and cookies. Check out the beta release at http://drupal.org/node/122084. Please, let me know if there are any bugs.
Comment #10
mfer commentedThis has been fixed for drupal 5 using jQuery/cookies when caching is enabled. You can find the release at http://drupal.org/node/132977.
This fix doesn't work for 4.7 but the idea works. The fix is to upgrade to drupal 5 and the 5.x-2.0 version of the comment info module.
Comment #11
(not verified) commented