VersionX icon indicating copy to clipboard operation
VersionX copied to clipboard

feat: Render view options / Automatic cache clean

Open matdave opened this issue 3 months ago • 4 comments

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

matdave avatar Sep 15 '25 20:09 matdave

Just for reference:

SideBySide:

image

Combined:

image

matdave avatar Sep 15 '25 21:09 matdave

This looks great! I'll try to give it a test soon 🙂

muzzwood avatar Sep 19 '25 02:09 muzzwood

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.

muzzwood avatar Oct 24 '25 02:10 muzzwood

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?

matdave avatar Oct 30 '25 16:10 matdave

Thanks the event wasn't set. Working nicely! I'll see why the event didn't get set by the bootstrap script.

muzzwood avatar Nov 21 '25 02:11 muzzwood