Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
18778f71
Commit
18778f71
authored
Sep 23, 2010
by
Glenn Morris
Browse files
* doc/misc/url.texi (Disk Caching): Tweak previous change.
parent
9c766321
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
doc/misc/ChangeLog
doc/misc/ChangeLog
+4
-0
doc/misc/url.texi
doc/misc/url.texi
+10
-12
No files found.
doc/misc/ChangeLog
View file @
18778f71
2010-09-24 Glenn Morris <rgm@gnu.org>
* url.texi (Disk Caching): Tweak previous change.
2010-09-24 Julien Danjou <julien@danjou.info>
* url.texi (Disk Caching): Mention url-cache-expire-time,
...
...
doc/misc/url.texi
View file @
18778f71
...
...
@@ -740,11 +740,6 @@ corresponding cache file. The two supplied possibilities are
@code
{
url-cache-create-filename-human-readable
}
.
@end defopt
@defopt url-cache-expire-time
This variable defines a default time value to use as expire delay when
checking if an URL has expired with @code
{
url-cache-expired
}
.
@end defopt
@defun url-cache-create-filename-using-md5 url
Creates a cache file name from @var
{
url
}
using MD5 hashing.
This is creates entries with very few cache collisions and is fast.
...
...
@@ -766,16 +761,19 @@ more likely to conflict with other files.
@end defun
@defun url-cache-expired
This is a function to decide whether or not a cache entry has expired.
It takes a an URL as it first parameters and a expiration delay in
second paramater. It returns non-@code
{
nil
}
if URL is not cached or is
cached for more than the give expiration delay. If the delay is not
used, @var
{
url-cache-expire-time
}
is used instead.
This function returns non-nil if a cache entry has expired (or is absent).
The arguments are a URL and optional expiration delay in seconds
(default @var
{
url-cache-expire-time
}
).
@end defun
@defopt url-cache-expire-time
This variable is the default number of seconds to use for the
expire-time argument of the function @code
{
url-cache-expired
}
.
@end defopt
@defun url-fetch-from-cache
This function takes a
n
URL as its
first
argument and
then
returns a
buffer
containing the data cached for th
e given
URL.
This function takes a URL as its argument and returns a
buffer
containing the data cached for th
at
URL.
@end defun
@c Fixme: never actually used currently?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment