Page attributes not updated until page is reloaded
Permalink
I have a Single Page which posts itself data from forms and updates page attributes based on that data. Performing a getAttribute() on a page attribute after having just calling setAttribute() does not return the data just set. I thought that it might have to do with caching, so I first called Cache::delete('page', $c->getCollectionID()), then Cache::delete('page', false), and finally Cache:flush(), all to no avail.
How do I obtain the new attribute values without refreshing the page?
edit:
More specifically, calling $c->getAttribute() before $c->setAttribute() caches the current value such that any subsequent calls to $c->getAttribute() just return the initial value. Of course I can add a hack to the page to not use the old value, but it would be instructive to know how to clear the attribute cache for a particular page attribute. There is some minimal documentation, but nothing comprehensive.
How do I obtain the new attribute values without refreshing the page?
edit:
More specifically, calling $c->getAttribute() before $c->setAttribute() caches the current value such that any subsequent calls to $c->getAttribute() just return the initial value. Of course I can add a hack to the page to not use the old value, but it would be instructive to know how to clear the attribute cache for a particular page attribute. There is some minimal documentation, but nothing comprehensive.
So then is this considered a bug? That is, the caching is not updated when changes are made.