Skip to content

File-Based Cache for NNTP Data#38

Open
markrandall wants to merge 3 commits into
php:masterfrom
markrandall:memod
Open

File-Based Cache for NNTP Data#38
markrandall wants to merge 3 commits into
php:masterfrom
markrandall:memod

Conversation

@markrandall

Copy link
Copy Markdown

Enormously improves performance by:

  • Lazy-loading the connection to the NNTP server. Now it only makes the connection when the first command is made.
  • Using server-side file-based cache

Caches the following:

  • Groups and Descriptions for 1 hour - Mainly only needed for the message count.
  • Message content indefinitely, including paths of resolved references - These should be completely immutable unless the server is significantly reconfigured.
  • Message metadata (descendent messages etc) for 2 minutes - Needed to show new / related posts

Not covered:

  • Locking while populating cache key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant