I'm not sure what the root issue is (Chrome, CKEditor, PHP, Ubuntu, etc.), but this is essentially what's happening:
- Using Composer to update CKEditor, I change the version and do an update
- I see that the new version doesn't include a specific plugin (like, Autogrow)
- After pushing the changes of the composer.json from my local env to production using Git, I update the prod server
- All looks fine, except for the plugins that didn't exist inside of CKEditor's vendor folder are being loaded "from disk cache"
I can run Chrome in incognito and verify that the plugins that are supposed to be missing are indeed missing. I can't, however, do a cache refresh in Chrome and have the disk cache remove those directories that no longer exist.
Interestingly, Chrome on Android doesn't have this problem, which is how I noticed something was wrong when CKEditor wasn't loading on my phone (missing plugin).
Attempted Solutions:
- Remove CKEditor from composer entirely. Push/pull updates. Re-add CKEditor, still seeing those plugins cached in disk
- Update the ckeditor.js file to be versioned (i.e, ckeditor.js?v=1.02)
- Ran
composer clearcache
- Tried PHP's
clearstatcache()
I'm trying to find a solution that I can do from the developer's end, not as an end user.
I'm attaching a screenshot of the js file being cached in disk.
Any help is appreciated. Thanks
EDIT: This is on:
- Ubuntu Server 18.04
- PHP 7.2
- CKEditor 4.8 through 4.10