summaryrefslogtreecommitdiffstats
path: root/lib/private/Template/JSCombiner.php
Commit message (Collapse)AuthorAgeFilesLines
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-5/+5
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Actually clear cache values for all base urlsJulius Härtl2018-03-071-4/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Check if the cached js file existsRoeland Jago Douma2018-03-071-1/+8
| | | | | | | | | Fixes #8705 If the file does not exist (for whatever reason). It is never cached. No matter what the depscache etc tell you. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-031-3/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add repair step to clear frontend related cachesJulius Härtl2018-02-031-1/+20
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* If for some reason the json can't be decoded it is not cachedRoeland Jago Douma2017-11-081-0/+4
| | | | | | Should fix #6898 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly handle if the deps file if for some reason emptyMorris Jobke2017-07-191-1/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cache deps list to memcache on write not on first readRoeland Jago Douma2017-05-161-2/+4
| | | | | | | | | | Fixes #4886 Caching on first read leads to the bug that if the files are updated we will never cache again. Since we will always fetch from the memcache (which works) and then see that the files are newer. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #4131 from nextcloud/fix-jscombinerChristoph Wurst2017-04-031-1/+1
|\ | | | | Fix check for cache value in JSCombiner
| * Fix check for cache value in JSCombinerMorris Jobke2017-03-281-1/+1
| | | | | | | | | | | | | | | | | | * fixes following log output, because there was empty string stored in the cache Invalid argument supplied for foreach() at lib/private/Template/JSCombiner.php#108 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix gzip files for SafariMorris Jobke2017-03-291-2/+2
|/ | | | | | | * Safari support gzip only if the filename does not end on .gz - so this renames them to .gzip Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to gzip CSS/JS filesRoeland Jago Douma2017-03-281-0/+7
| | | | | | | | | | Since in production the SCSS files are compiled once and the javascript files are combined once we can just as well gzip them aggresively. This means that once they are requested and the browser supports gzip we can just serve the gzipped file saving precious bandwidth. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't run JSCombiner when not installedLukas Reschke2017-03-251-3/+6
| | | | | | When the instance is not installed don't run the JSCombiner as the appdata folder does not yet exist. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add debug modeRoeland Jago Douma2017-03-241-1/+31
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add cachingRoeland Jago Douma2017-03-241-6/+42
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* [PoC] JS CombinerRoeland Jago Douma2017-03-241-0/+133
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>