feat: Render view options / Automatic cache clean
This adds the ability to change the renderer from strictly "Inline" to "SideBySide" and "Combined". Mostly because side by side is more how my brain wants to look at diffs. Re: #153
I also tied in cleaning up the cache directory on site_refresh, since there are currently no mechanisms to do that. Re: #152
Just for reference:
SideBySide:
Combined:
This looks great! I'll try to give it a test soon 🙂
It seems if there are diffs already in the cache and the renderer setting is changed then you don't see the change since it's still loading the cached diffs. I tried clearing the cache but that didn't help.. it's possible the new cache clearing mechanism isn't working (or I haven't enabled it somehow?).
Loading diffs on an object where they haven't been cached yet works as expected.
It seems if there are diffs already in the cache and the renderer setting is changed then you don't see the change since it's still loading the cached diffs. I tried clearing the cache but that didn't help.. it's possible the new cache clearing mechanism isn't working (or I haven't enabled it somehow?).
Loading diffs on an object where they haven't been cached yet works as expected.
Do you see "[VersionX] Cleaning up cache" when you clear cache? If not, is the VersionX plugin set to run on Site Refresh?
Thanks the event wasn't set. Working nicely! I'll see why the event didn't get set by the bootstrap script.