john-kurkowski / john-kurkowski/tldextract

Reconsider cache folder

Open
#212 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2k
Forks
219
PR merge metrics
No merged PRs in 30d

Description

Reconsider caching in the library's install folder. The GitHub issue tracker is rife with confusion about the permission warning (#9), or outright uncaught exceptions (#209). Finally do something about it. 😄

Some example approaches:

* System temporary dir
* These aren't for caching though. These can be evicted by the OS whenever.
* XDG standard cache directory
* Brought to my attention [in this comment](https://github.com/john-kurkowski/tldextract/issues/196#issuecomment-668974052).

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the library's current cache handling and the permission warning in #9 and exception in #209; the issue does not name files or tests. Compare the proposed temporary-directory and XDG cache approaches, then confirm the chosen cache location and that permission failures no longer produce the reported warning or exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.