5099 is the inspiration of this feature request.
In the words of @indigoxela:
If doing an update via UI, caches do get cleared. At least, that has worked for me several times.
I would like to confirm if that is the case, and if it applies to both core and contrib.
If doing an update via filesystem (drush, bee, unzip the file, or ftp upload), which means to simply replace the files (core or contrib), caches do not get flushed automatically. Admins have to do that manually. I don't think, there's a possible fix for that. Backdrop does not "observe" the file system for changes - and couldn't.
I think that updating via drush behaves the same as performing the update via the UI, so caches are cleared. I could be wrong about it though, so I would like to confirm that too.
In any way, I would like us to automate that, so that people performing manual updates face less WTFs after upgrading. Here's a very simplified version of what I was thinking:
- Backdrop caches the core version, as it's being reported in
bootstrap.inc(see https://github.com/backdrop/backdrop/blob/1.x/core/includes/bootstrap.in...) - this could be stored in config (system.core.jsonperhaps?) or in a state (state_set()). - A person performs a manual update, by replacing the
/coredirectory with a newer version. - Next time Backdrop loads a page, it detects that the version number in
bootstrap.incis now different from the one previously cached, clears caches, and shows a message to inform that caches have been cleared. - config/state value that caches the Backdrop version is updated, to hold the new version number (until the next manual update)
Recent comments
Bee's great. But if you don't want to install bee, or can't, or you already have a bunch of scripts you're used to using in D7, then the method I posted is quick and easy and all you really...
How to create a command-line (cli) routine or script (bee not required)
This was tricky, so i tried to stay minimal and try to snatch the very first procedure after file upload and inject rehashing there. The file is tinymce.pages.inc under the function...
File hashing uploads made through TinyMCE
Or you can install bee, get the benefit of all the included functions and either include your script using: bee php-script ../my-scripts/scratch.php https://github.com/backdrop-...
How to create a command-line (cli) routine or script (bee not required)