Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intraweb caching JavaScript files (Priority support)
#1
I am using Intraweb 15.3.10 with C++ Builder 10.2.3
I am using Bootstrap 5.3 templates with my Intraweb application.
The template loads some JavaScript files:
      <script src="bootstrap-js/bootstrap.bundle.min.js"></script> 
      <script src="wysiwyg-editor/dist/js/wysiwyg.js"></script> 


Both Js files are in the wwwroot and Templates folders. Unfortunately I noticed that even if the Js is modified, Intraweb is using an old version.
The changes I make in wysiwyg.js are not reflected in the Browser during the execution of the program. When running the browser is showing the code below for a click on a button:

                            content += '<div class="form-group form-group-sm">';
                            content += '    <div class="form-row">';
                            content += '        <label class="col-xs-12 col-sm-4">Class:</label>';
                            content += '        <div class="col-xs-12 col-sm-8">';
                            content += '            <input type="text" class="form-control" id="urlClass" placeholder="CSS class name..." />';
                            content += '        </div>';
                            content += '    </div>';
                            content += '</div>';



But the real code in the Js file is below:

            content += '<div class="mb-3">';
            content += '    <div class="row mb-3">';
            content += '        <label class="col-12 col-sm-4">Tile:</label>';
            content += '        <div class="col-12 col-sm-8">';
            content += '            <input type="text" class="form-control" id="urlTile" placeholder="Title of link..." />';
            content += '        </div>';
            content += '    </div>';
            content += '</div>';


So the 2 codes which are supposed to be from the Js file are different!!
It is not related to the browser because I cleared the cache and tried 2 different browsers.

So it is Intraweb which is caching the wrong version and using it ignoring the changes I am making!
In the browser, the Js version used is located at http://localhost:20300/wysiwyg-editor/dist/js/wysiwyg.js

I tried to relocate the application cachedir, TIWTemplateCache::Instance->ClearCache(). But nothing is resolving the issue!

So, where is Intraweb is getting this old and wrong version from?
Reply


Messages In This Thread
Intraweb caching JavaScript files (Priority support) - by valmeras - 07-20-2023, 09:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)