Commits
- Commit:
a96922a16759643ba6a0bc3d9781e97fedbf1107
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop useless struct
instead of keeping the struct mcache that's private to mcache.c and
used only once, just define its fields as (static) variables. While
here, mark as static also gemtext_prefixes.
- Commit:
4b4c3458436c646c06d295cc56e990eef9897c6f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
timer-based cache removal: delete cached pages older than 15 minutes
- Commit:
0259f38d36d8538ee723be82e20e5ccf29fcd385
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify load_url_in_tab
- Commit:
9309f1423dcc0bf53fe33df9a1dba97ea5c9c090
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync changelog
- Commit:
eeebca225c95bf47ffc0c201333434720529d567
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add cache-info
- Commit:
befa807e5bfef47c79310f7ab3b7038042a49ee8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
cache: keep track of the total size and number of cached pages
- Commit:
ffcd827cfe2431a4f2ba116bc00b205d12cdf6df
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mcache_tab: free previous copies of that page
- Commit:
c553191ed9d1aa9c51b3617893fc11019635c3cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename util.c -> utils.c for consistency
- Commit:
9d65b1d9ae3209a8a2bc8e8c376dede4f71290ce
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move util.c declarations in utils.h
it's not spelled `util.h' because otherwise it'd get included instead
of /usr/include/util.h
- Commit:
036c104e0d5b8758a8cf72c9085af23956fdfa6f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
de-duplicate hash_* function: collect them in util.c
- Commit:
4e3871f5a61f3d1781f0e1b273ab3c7eeb9924f7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
save parser name across mcache_tab/mcache_lookup
- Commit:
8f3c9af8369ac653695ca22777db99bfa1162cfe
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify the caching API
- don't expose the evbuffer where we store the cached page
- cache to/from tabs instead of buffers
- Commit:
5df02e0d8d9027c56450c94857949b3826454369
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix start_loading_animation usage
the idiom
if (load_next_page(...))
start_loading_anim(...);
is fundamentally wrong because `load_next_page' (or previous page, or
anything else that call into load_url) *may* load all the page before
returning (thanks to the cache, but not only, cf. load_page_from_str.)
Instead, let's call start_loadign_anim at the start of make_request so
it's always called in the right moment. Cache and other special pages
don't end up calling make_request anyway, and we already call
stop_loading_anim when a request finishes (or fails.)
move start_loading_anim up in make_request.
- Commit:
ed21a9a1021f38c009ef8a0ea6049587e3b4373b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
provide a way to bypass the cache
This changes the last argument of load_url to be a `mode' bitmap
instead of a boolean ``nohist''. LU_MODE_NOHIST is the old 1,
LU_MODE_NONE is provided just for readability and the new LU_MODE_NOCACHE
allows to bypass the caching when loading a page.
Telescope only uses the cache when:
- re-opens a closed tab
- navigates backward and forward in the history
All other situations result in the usual network request.
- Commit:
dc8e7bf65a6ca6deb0e7dec7ebcf22286604c321
- From:
- Omar Polo <op@omarpolo.com>
- Date:
cache only gemini:// and gopher:// pages