grav-plugin-flex-objects icon indicating copy to clipboard operation
grav-plugin-flex-objects copied to clipboard

Flex Pages: Frontend issues with plugin events (changes do not stick)

Open mahagr opened this issue 6 years ago • 2 comments

Due to differences in how the pages are cached, plugins making changes to the page objects during the events: onBuildPagesInitialized, onPageProcessed and onFolderProcessed will not be cached right now, causing the changes to be lost on later requests.

This issue needs to be solved as soon as possible.

mahagr avatar Sep 19 '19 12:09 mahagr

Not sure if all these event issues are based in the same fundamental problem, but onPageProcessed is used extensively. The other 2 not as much.

rhukster avatar Sep 19 '19 12:09 rhukster

The fix from above calls onPageProcessed every time a page is accessed first time during the request. While not ideal, it seems to fix most of the issues with plugins.

I still need to figure out how to efficiently cache the changes made by plugins.

mahagr avatar Oct 07 '19 11:10 mahagr