Skip to content

Commit 3143a02

Browse files
committed
Updated F.touch() can clears the whole cache for all static files.
1 parent e57c717 commit 3143a02

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5112,7 +5112,12 @@ Framework.prototype.responseFile = function(req, res, filename, downloadName, he
51125112
* @return {Framework}
51135113
*/
51145114
Framework.prototype.touch = function(url) {
5115-
delete this.temporary.path[createTemporaryKey(url)];
5115+
5116+
if (url)
5117+
delete this.temporary.path[createTemporaryKey(url)];
5118+
else
5119+
delete this.temporary.path = {};
5120+
51165121
return this;
51175122
};
51185123

0 commit comments

Comments
 (0)