Are you sure $twig->purge in process_attachment doesn't do what you want? In any case purge should be called on the twig object, not on an element.
Just in case you need it (you shouldn't from your description of the problem), you can also use the purge_up_to method.
methodIn reply to Re: broken twig?
by mirod
in thread broken twig?
by gregaryh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |