I’m curious to get some thoughts on this.
I’ve inherited a pipeline where the PublishedFile entities path_cache is being set manually on creation by the pipeline tooling; not via register_publish.
The path being stored in this field appears to be the full platform-specific path to the publish; not the path with the local_root removed.
I’m curious what the implications for this might be?
I’m assuming these publishes won’t work in a multi-platform environment?
I now how a situation where some publishes path_cache is of the form /projects/<project>/<publishedFile_path>
and others are the correct Flowonic <project>/<publishedFile_path>
.
I’ll need to unpick the implications of correcting this custom behaviour as I think various tools here use the path_cache value directly rather than using pf[‘path’][‘local_path’] when it comes to gathering published file paths, so things will probably break.
Set up a test project and environment and recreate some of these publishes, some with the correct flowonic path cache and some with the incorrect and then test the tools to see which break?
hah, yea I was hoping to avoid that.
For PublishedFiles, I imagine the only area that breaks would be workfiles2 which I think needs a valid path_cache (from other posts here).
By the time a PublishFile is created, I’m assuming the folders have been already created and path-cached, so the actualy Publishedfile path_cache seems to be a bit of a historical relic.
Hey!
If I remember correctly, the functional “path cache” is actually stored in FPT as FilesystemLocation entities and then cached locally on user machines in a sqllite db. The PublishedFile.path_cache
field is just a convenience field to expose the published file path in a field that is easily visible and filterable. I don’t believe there is any part of TK that actually relies on it for functionality (though it does update the field when needed).
Can’t speak to what custom pipeline tools will do if you modify values in that field though if they’re using it. Not ideal.
Good luck!
KP
1 Like