1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » Form Fields Retain data After Comment Post
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 618 Views |
-
Form Fields Retain data After Comment Post

7 August 2011 at 5:48am
Hi:
I am noticing that after I post a comment to a blog entry, the information does not clear out of the form fields. Even if I close the browser and return to the page, my previous information is still sitting in the fields, even with the comment submitted.
Any ideas why this is happening and/or solutions?
Thanks!
-
Re: Form Fields Retain data After Comment Post

9 August 2011 at 8:43pm
SS stores the comment name, email and url in a cookie. though it shouldn't store the comment text. If it stores comment text you may want to check if you have partial caching or static caching enabled. In those cases you'll need to disable caching for the comments area.
-
Re: Form Fields Retain data After Comment Post

10 August 2011 at 2:48am
Thanks Will.
I do have a cache folder in the root to help speed up the site, think that may be the culprit? I did not notice it storing comment data though. so I guess its ok then and makes it easier for a returning user.
Do you think i should consider disabling the storage of that info though? If so, can you direct me to where I can find info on how?
-
Re: Form Fields Retain data After Comment Post

10 August 2011 at 1:20pm
All SilverStripe sites will have a cache folder. The cache will contain at least a manifest of all the classes used but in the event of using static caching (i.e if there are .html files in that cache folder) then you will need to disable the static cache for those pages. Or if you see <% cached %> in your template file then you can wrap the $PageComments variable with an <% uncached %>$PageComments<% end_uncached %>.
| 618 Views | ||
|
Page:
1
|
Go to Top |


