bjornbjorn/snippetssync.ee2_addon — Issue #4: A way to clean the filesystem of orphaned snippets/global vars.
Author: jannisg
Created: 2012-01-09 08:52:31+00:00
State: open

Hi Bjørn,

I am working on a way for snippets that have been deleted _(via the admin or direct DB access)_ to be purged from the filesystem but so far it's proving to be rather difficult because the session\_start hook seems to fire _(logically so)_ before the actual modification of the DB is taking place, so at runtime the DB doesn't yet reflect the changes of the delete action the user triggered.

Have you got any ideas on which hook I might be able to use that can be used in snippetssync and will run after any DB modifications?

My idea is documented in this feature branch here: [jannisg:origin/feature/delete-files](https://github.com/jannisg/snippetssync.ee2_addon/blob/feature/delete-files/snippetssync/libraries/snippetslib.php#L112)

Would love to hear your thoughts on this.