I am developing several Brics and I keep having a cache problem with the Bric. It simply does not use the current version but an older one. The correct version is in the Library/ApplicationSupport/Blocs 6/brics folder, but an older version is used when exporting. So it is cached somewhere. The API Developer Mode settings did not help. If I create a new project, the current one is used. How do I clear the bric cache?
I’ve not see this issue before.
When you export and test how are you doing that?
Are you re-installing your Bric on a separate system?
Or removing your current build and installing it fresh?
If you are changing the page resources added to a project, these are not synced automatically.
You will need to use the Reset Options to flushed resources.
I test with “Preview in Browser” and also locally by simply dragging the index.html into the browser after the export.
I compile the Bric. remove the old one in the Extension Manager. Exit Blocs. Start Blocs and add the previously compiled one.
Then I open the test project again. There the Bric is inserted about 20 times on different pages.
Maybe it is a specialty because I am developing a map bric. Usually only one Javascript file in the resources changes.
Is it enough to reset the resources for one bric or does this have to be done for all of them?
The resources are linked to the page and embedded into the project, so if you changed them they do not automatically refresh.
There are pros and cons to this.
The pros are, if the Bric is not installed on another Mac the resources are still present and the site will function when exported.
The cons are, if you change the source code of resources and do not change the version number of the Bric, you will not get the Bric update alert which will let you quickly refresh the Brics so they use the latest version of resources.
Which means you have to manually refresh each one as I mentioned.
So typically if you change some code and release an update, as long as you update the version number, the user will get the prompt to update all instances of the Bric, which should refresh linked resources.
I’ll loop back over that and test its still working as it should.
thanks for the detailed clarification, I will test the flushing of the resources,
Always setting the version number so that everything is reloaded makes the development process quite slow, a small typo in the Javascript and you have to update everything again.



