summaryrefslogtreecommitdiffstats
path: root/apps/contacts/thumbnail.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-04-22 20:38:17 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-04-22 20:47:24 +0200
commit8a6cb23170b95336770bc4dcd6d58583de82815e (patch)
treec3811c2a26c9a64af5b6972d98659d5238d11b30 /apps/contacts/thumbnail.php
parent1bba4456420d1824ab6d58f3d9bb523fcde5c4c2 (diff)
downloadnextcloud-server-8a6cb23170b95336770bc4dcd6d58583de82815e.tar.gz
nextcloud-server-8a6cb23170b95336770bc4dcd6d58583de82815e.zip
Contacts: Clear cache for contact photo and thumbnail when it has been changed.
Diffstat (limited to 'apps/contacts/thumbnail.php')
-rw-r--r--apps/contacts/thumbnail.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/contacts/thumbnail.php b/apps/contacts/thumbnail.php
index 5082626499b..28b8eba22c9 100644
--- a/apps/contacts/thumbnail.php
+++ b/apps/contacts/thumbnail.php
@@ -39,6 +39,7 @@ if(!function_exists('imagecreatefromjpeg')) {
}
$id = $_GET['id'];
+$caching = isset($_GET['refresh']) ? 0 : null;
$contact = OC_Contacts_App::getContactVCard($id);
@@ -48,7 +49,7 @@ if(is_null($contact)){
getStandardImage();
exit();
}
-OC_Response::enableCaching();
+OC_Response::enableCaching($caching);
OC_Contacts_App::setLastModifiedHeader($contact);
$thumbnail_size = 23;