I have a scenario in a plugin where I need to create / check data obtained by reading files. This currently happens on plugin
init but isn't completed in time to make use of by other functions.
My plugin needs to parse a few SVG's and stylesheets and create data accordingly. I'am currently checking against a last modified date to avoid extraneous work.
The SVG's and stylesheets are from the website public directory and can be modified by the developer at any time and I would like to avoid any manual interaction within the CP when it comes to parsing these files.
What would be an acceptable way to ensure this data is generated before my plugin attempts to use it?