diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 16:13:00 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 16:13:00 +0200 |
commit | 5dda52c924763a889e98b4cf97c588b34ef01812 (patch) | |
tree | 0616e61d825dbfee6e0183555e47cdb7b1d7f472 /server/controllers/api/v1/remoteVideos.js | |
parent | 788a7e02029efae7c44bc4ec608493f67dac291a (diff) | |
download | PeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.tar.gz PeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.tar.zst PeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.zip |
Remove the cache middleware
Diffstat (limited to 'server/controllers/api/v1/remoteVideos.js')
-rw-r--r-- | server/controllers/api/v1/remoteVideos.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/controllers/api/v1/remoteVideos.js b/server/controllers/api/v1/remoteVideos.js index 7da9f0105..cc4bc41e2 100644 --- a/server/controllers/api/v1/remoteVideos.js +++ b/server/controllers/api/v1/remoteVideos.js | |||
@@ -5,7 +5,6 @@ const map = require('lodash/map') | |||
5 | 5 | ||
6 | const middleware = require('../../../middlewares') | 6 | const middleware = require('../../../middlewares') |
7 | const secureMiddleware = middleware.secure | 7 | const secureMiddleware = middleware.secure |
8 | const cacheMiddleware = middleware.cache | ||
9 | const reqValidator = middleware.reqValidators.remote | 8 | const reqValidator = middleware.reqValidators.remote |
10 | const logger = require('../../../helpers/logger') | 9 | const logger = require('../../../helpers/logger') |
11 | const Videos = require('../../../models/videos') | 10 | const Videos = require('../../../models/videos') |
@@ -17,7 +16,6 @@ router.post('/add', | |||
17 | reqValidator.secureRequest, | 16 | reqValidator.secureRequest, |
18 | secureMiddleware.decryptBody, | 17 | secureMiddleware.decryptBody, |
19 | reqValidator.remoteVideosAdd, | 18 | reqValidator.remoteVideosAdd, |
20 | cacheMiddleware.cache(false), | ||
21 | addRemoteVideos | 19 | addRemoteVideos |
22 | ) | 20 | ) |
23 | 21 | ||
@@ -25,7 +23,6 @@ router.post('/remove', | |||
25 | reqValidator.secureRequest, | 23 | reqValidator.secureRequest, |
26 | secureMiddleware.decryptBody, | 24 | secureMiddleware.decryptBody, |
27 | reqValidator.remoteVideosRemove, | 25 | reqValidator.remoteVideosRemove, |
28 | cacheMiddleware.cache(false), | ||
29 | removeRemoteVideo | 26 | removeRemoteVideo |
30 | ) | 27 | ) |
31 | 28 | ||