mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-24 02:24:39 +00:00
Fix cache storing.
This commit is contained in:
parent
5ff2f052c6
commit
fbd28407ea
@ -9,7 +9,7 @@ require_once("./always.php");
|
|||||||
dbg_error_log( "feed", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry and Chandler don't send a 'User-agent' header with their requests :-(")) );
|
dbg_error_log( "feed", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry and Chandler don't send a 'User-agent' header with their requests :-(")) );
|
||||||
dbg_log_array( "headers", '_SERVER', $_SERVER, true );
|
dbg_log_array( "headers", '_SERVER', $_SERVER, true );
|
||||||
|
|
||||||
require_once('AWLCache.php');
|
require_once('AwlCache.php');
|
||||||
|
|
||||||
require_once("HTTPAuthSession.php");
|
require_once("HTTPAuthSession.php");
|
||||||
$session = new HTTPAuthSession();
|
$session = new HTTPAuthSession();
|
||||||
@ -183,7 +183,7 @@ function caldav_get_feed( $request, $collection ) {
|
|||||||
$last_modified = new RepeatRuleDateTime($collection->GetProperty('modified'));
|
$last_modified = new RepeatRuleDateTime($collection->GetProperty('modified'));
|
||||||
$feed->setDateModified($last_modified->epoch());
|
$feed->setDateModified($last_modified->epoch());
|
||||||
$response = $feed->export('atom');
|
$response = $feed->export('atom');
|
||||||
$cache->set( $cache_ns, $cache_key );
|
$cache->set( $cache_ns, $cache_key, $response );
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user