Template mode - Cache issue (?)

-> Delphi 12.1 / TMS Web Core 2.9.1.0

Hi,

This issue is an "aside" bug's found of my previous ticket about "await" issue.

For me, It perhaps explain (partially), many visuals "inconsistances" that I got in my work with TMS Web Core *in template" mode (so, with custom html file)

Here is my attempt to reproduce it :

It is based upon "multiform" web core demo.

When I do my test, I copy "multiform" as "MutliForm - copy", and made my test entirely on "multiForm - copy" (no touch to original "multiform")

  • I open project in "MutliForm - copy"

  • I add a "WebButton" on main form (autmatically called WebButton2, because there is already one).

  • All run fine a this point.

  • save it and quit.

  • After that, I shutdown Delphi, and then, I completely delete "multiform - copy", and copy again "multiform" (and thus, get again a "multiform - copy").

when I open it in fresh Delphi, I was suprised, because I get again the visual for my "old" "multiform - copy" (With a WebButton2 - Wich was completely deleted !)

--> The Design time visual in delphi was coherent, but the source code was inconsistant : (I just added a button, visual was ok, but in source, button was not declared)

On run, there are naturally an error (webButton2 not found...)

  • The fact is that I have delete all data, and I already got my visual again !
    --> I'm very sure that this behaviour come from the "web" cache system (chromium) view !

in this "multiform" demo, it is easy to reproduce this, because (I thing) of use of template mode.

The "template" mode is very important to me, and this is "bug" is annoying for a little project, and, I thing, is a "blocker" for a big project :confused:

Thanks !

Vincent

Am I correct that in this setup, you are using the web form designer and not the classic form designer?
If that is the case, to verify this is effectively a cache issue, enable the option "Show Dev Tools" in the TMS WEB Core options and when the web form designer shows, you should see the browser console too. From this browser console, you could inspect & clear the cache to troubleshoot.

Hi,

My mail is perhaps a little bit long, and I apologize for this. It was to help you to reproduce.

The simple fact that a copy of the multiform TMS demo show the visual of a form that no longer exists anywhere in the project is suffisant for me to suspect web stack/cache problem :
Have you tryed to reproduce the problem on our side ?

Anyway, thanks for your quick response : I will try to use this tools, and see if it help.

On worst case, I will desactivate web designer. (really a shame)

Thanks,
Vincent

We will investigate and try to reproduce here. Sometimes, the browser caching can indeed be annoying and sometimes not trivial to circumvent when the file names do not change.

We investigated and we suggest to save the two projects to two different folders. With properly saved projects, such problem should not occur.