diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-21 21:53:20 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-22 20:14:08 +0100 |
commit | e3925ba2a1de18692f2687569c1f490a24ec11d3 (patch) | |
tree | 80652f6927a23ac680921ecbdc36d7ea5a9a3185 /tests | |
parent | 8b75e9b8a01f4dcd8404d1231f96461a4f405c67 (diff) | |
download | nextcloud-server-e3925ba2a1de18692f2687569c1f490a24ec11d3.tar.gz nextcloud-server-e3925ba2a1de18692f2687569c1f490a24ec11d3.zip |
Cache SCSS dependency file in memcache
Since reading a file from disks can be costly. Lets store the dependency
json also in memcache.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Template/SCSSCacherTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/Template/SCSSCacherTest.php b/tests/lib/Template/SCSSCacherTest.php index d49f0cdc6a1..b345c673871 100644 --- a/tests/lib/Template/SCSSCacherTest.php +++ b/tests/lib/Template/SCSSCacherTest.php @@ -28,6 +28,7 @@ use OCP\Files\IAppData; use OCP\Files\NotFoundException; use OCP\Files\SimpleFS\ISimpleFile; use OCP\Files\SimpleFS\ISimpleFolder; +use OCP\ICache; use OCP\IConfig; use OCP\ILogger; use OCP\IURLGenerator; @@ -57,7 +58,8 @@ class SCSSCacherTest extends \Test\TestCase { $this->appData, $this->urlGenerator, $this->config, - \OC::$SERVERROOT + \OC::$SERVERROOT, + $this->createMock(ICache::class) ); } @@ -275,4 +277,4 @@ class SCSSCacherTest extends \Test\TestCase { } -}
\ No newline at end of file +} |