Skip to content

Commit c09e61b

Browse files
committed
4.0.2 release
1 parent f564450 commit c09e61b

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

administrator/components/com_joomlaupdate/joomlaupdate.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
<folder>js</folder>
1515
</media>
1616
<administration>
17-
<menu img="class:joomlaupdate">com_joomlaupdate</menu>
1817
<files folder="admin">
1918
<filename>config.xml</filename>
20-
<filename>joomlaupdate.xml</filename>
2119
<filename>restore.php</filename>
2220
<filename>restore_finalisation.php</filename>
2321
<folder>services</folder>

administrator/components/com_joomlaupdate/restore_finalisation.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,30 @@ public static function move($src, $dest)
135135
$postproc = \AKFactory::getPostProc();
136136
$postproc->rename($src, $dest);
137137
}
138+
139+
/**
140+
* Invalidate opcache for a newly written/deleted file immediately, if opcache* functions exist and if this was a PHP file.
141+
*
142+
* @param string $filepath The path to the file just written to, to flush from opcache
143+
* @param boolean $force If set to true, the script will be invalidated regardless of whether invalidation is necessary
144+
*
145+
* @return boolean TRUE if the opcode cache for script was invalidated/nothing to invalidate,
146+
* or FALSE if the opcode cache is disabled or other conditions returning
147+
* FALSE from opcache_invalidate (like file not found).
148+
*
149+
* @since 4.0.2
150+
*/
151+
public static function invalidateFileCache($filepath, $force = true)
152+
{
153+
if ('.php' === strtolower(substr($filepath, -4)))
154+
{
155+
$postproc = \AKFactory::getPostProc();
156+
$postproc->clearFileInOPCache($filepath);
157+
}
158+
159+
return false;
160+
}
161+
138162
}
139163
}
140164

administrator/manifests/files/joomla.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<authorUrl>www.joomla.org</authorUrl>
77
<copyright>(C) 2019 Open Source Matters, Inc.</copyright>
88
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
9-
<version>4.0.2-dev</version>
9+
<version>4.0.2</version>
1010
<creationDate>August 2021</creationDate>
1111
<description>FILES_JOOMLA_XML_DESCRIPTION</description>
1212

libraries/src/Version.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ final class Version
6161
* @var string
6262
* @since 3.8.0
6363
*/
64-
const EXTRA_VERSION = 'dev';
64+
const EXTRA_VERSION = '';
6565

6666
/**
6767
* Development status.
6868
*
6969
* @var string
7070
* @since 3.5
7171
*/
72-
const DEV_STATUS = 'Development';
72+
const DEV_STATUS = 'Stable';
7373

7474
/**
7575
* Code name.
@@ -85,15 +85,15 @@ final class Version
8585
* @var string
8686
* @since 3.5
8787
*/
88-
const RELDATE = '23-August-2021';
88+
const RELDATE = '24-August-2021';
8989

9090
/**
9191
* Release time.
9292
*
9393
* @var string
9494
* @since 3.5
9595
*/
96-
const RELTIME = '20:52';
96+
const RELTIME = '19:54';
9797

9898
/**
9999
* Release timezone.

0 commit comments

Comments
 (0)