clear cache and redirect after_new_action
Posted: Mon Oct 24, 2011 12:16 pm
Hello all,
Typically, upon adding/editing/deleting a record, a confirmation screen is presented, and (apparently) the cache is cleared and the new state of the record is visible (eg, the new value for an edited field has replaced the original value).
I now have a custom action which updates one table after a modification in another, by way of a custom query (thanks to ADobkin). Here's the problem: the record is modified; the record is saved; upon saving, the associated table is modified; BUT the screen simply turns white, not returning a 'record modified' message (or anything, for that matter, not even the execution time). I must manually clear the cache, and .. voila... the record modification is now visible. But this is cumbersome, and frankly inscrutable to the folks I am trying to encourage to use my system.
I've researched the forums here, and I've tried several of the variations of the options potentially available; none has worked. Perhaps I have missed something.
So: If anyone has any insights or suggestions, I'd appreciate them!
TIA,
-manifold
Typically, upon adding/editing/deleting a record, a confirmation screen is presented, and (apparently) the cache is cleared and the new state of the record is visible (eg, the new value for an edited field has replaced the original value).
I now have a custom action which updates one table after a modification in another, by way of a custom query (thanks to ADobkin). Here's the problem: the record is modified; the record is saved; upon saving, the associated table is modified; BUT the screen simply turns white, not returning a 'record modified' message (or anything, for that matter, not even the execution time). I must manually clear the cache, and .. voila... the record modification is now visible. But this is cumbersome, and frankly inscrutable to the folks I am trying to encourage to use my system.
I've researched the forums here, and I've tried several of the variations of the options potentially available; none has worked. Perhaps I have missed something.
So: If anyone has any insights or suggestions, I'd appreciate them!
TIA,
-manifold