?
avatar Jose-Sanchez-Martin
Jose-Sanchez-Martin
13 Jul 2016

Steps to reproduce the issue

Login in administrator
Select Global Configuration
Server
Select SMTP in mail settings
Try to send a test mail using smtp

Expected result

SMTP test result showed

Actual result

Javascript error in console: Uncaught ReferenceError: sendtestmail_url is not defined
File: sendtestmail.js
Line: 6

System information (as much as possible)

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar Jose-Sanchez-Martin Jose-Sanchez-Martin - open - 13 Jul 2016
avatar brianteeman
brianteeman - comment - 13 Jul 2016

Which version of Joomla?
Which web browser?
If this was after an update can you confirm that you cleared the browser cache


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11098.

avatar Jose-Sanchez-Martin
Jose-Sanchez-Martin - comment - 13 Jul 2016

Joomla 3.6.0
Chrome 51.0.2704.103

Clear cache solved the issue


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11098.

avatar brianteeman
brianteeman - comment - 13 Jul 2016

Closing as this would be expected behaviour that cache needs to be cleared on an update


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11098.

avatar brianteeman brianteeman - change - 13 Jul 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-07-13 09:15:01
Closed_By brianteeman
avatar brianteeman brianteeman - close - 13 Jul 2016
avatar brianteeman brianteeman - close - 13 Jul 2016
avatar PhilETaylor
PhilETaylor - comment - 13 Jul 2016

Cache issue - no issue to resolve. The JS is added with JFactory::getDocument()->addScriptDeclaration to the head of the admin document so it can have a CSRF token appended to it at load time. A Cache clear after update should be a must - or Joomla should implment cache busting.. which it currently doesnt.

avatar mbabker
mbabker - comment - 13 Jul 2016

Joomla actually started clearing its cache with the post update script - https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_admin/script.php#L1813

Problem is that it's only clearing the frontend cache. There's a cache for the backend too but that doesn't get flushed on update (you'd have to set the client_id state to "1" and trigger the clean method in the model again).

Now if you're talking about browser level cache, well, good luck...

avatar brianteeman
brianteeman - comment - 28 Jul 2016

@mbabker would you be able to do that PR please. It will save a LOT of aggravation on each update. I would do it myself if I knew how.

avatar rdeutz
rdeutz - comment - 28 Jul 2016

I can do it, it's two lines of code

avatar brianteeman
brianteeman - comment - 28 Jul 2016

Thanks - it will make a big difference
(I guess we wont need the message about clearing the cache any more then)

avatar andrepereiradasilva
andrepereiradasilva - comment - 28 Jul 2016

brian and for browser cache i proposed #11289 for (among other things) allow to attach the version string when using JHtml script methods (used all over the core).

Also adds the ability to add the script version when using JHtml::script() method.

The change in that PR will not solve the browser cache issues yet, but IMHO it's a first step.

avatar spetricko
spetricko - comment - 12 Jan 2018

Do I clear cache, or only expired cache?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Jan 2018

@spetricko i suggest to ask on forums as Comments on closed Issues didn't get much Notice.

Add a Comment

Login with GitHub to post a comment