summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/cache
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-29 13:34:27 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-29 13:34:27 +0200
commit482caa04f951c02a9a66f1f6866b79ad4edd5b29 (patch)
treed8d7c8233b35f08b947b1367c3808fbca2fb123f /apps/calendar/ajax/cache
parenta56f2dbce71d4afba530ff735ed04a0f5acc21be (diff)
downloadnextcloud-server-482caa04f951c02a9a66f1f6866b79ad4edd5b29.tar.gz
nextcloud-server-482caa04f951c02a9a66f1f6866b79ad4edd5b29.zip
add button to clear calendar's cache
Diffstat (limited to 'apps/calendar/ajax/cache')
-rw-r--r--apps/calendar/ajax/cache/rescan.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/calendar/ajax/cache/rescan.php b/apps/calendar/ajax/cache/rescan.php
new file mode 100644
index 00000000000..1355179b957
--- /dev/null
+++ b/apps/calendar/ajax/cache/rescan.php
@@ -0,0 +1,11 @@
+<?php
+/**
+ * Copyright (c) 2012 Georg Ehrke <georg@ownCloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+OCP\JSON::checkLoggedIn();
+OCP\JSON::checkAppEnabled('calendar');
+OC_Calendar_Repeat::cleancalendar(OCP\USER::getUser());
+OC_Calendar_Repeat::generatecalendar(OCP\USER::getUser()); \ No newline at end of file