This website works better with JavaScript.
Home
Help
Register
Sign In
deblan
/
gist
Watch
3
Star
3
Fork
2
Code
Issues
0
Pull Requests
0
Releases
32
Wiki
Activity
Browse Source
Cache
dev-master
Simon Vieille
2 years ago
parent
b43baac802
commit
6e848f0982
No known key found for this signature in database
GPG Key ID:
919533E2B946EA10
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
src/Gist/Controller/Controller.php
+ 3
- 1
src/Gist/Controller/Controller.php
View File
@ -195,7 +195,9 @@ abstract class Controller
$response
=
new
Response
(
$body
);
if
(
empty
(
$params
[
'no_cache'
]))
{
$response
->
setTtl
(
3600
*
24
*
7
);
$ttl
=
3600
*
24
*
7
;
$response
->
setTtl
(
$ttl
);
$response
->
setClientTtl
(
$ttl
);
}
return
$response
;
Write
Preview
Loading…
Cancel
Save