Skip to content

Document the CompiledDataCache for preset data - #15

Merged
sascha-egerer merged 2 commits into
mainfrom
docs/compiled-data-cache
Jul 28, 2026
Merged

Document the CompiledDataCache for preset data#15
sascha-egerer merged 2 commits into
mainfrom
docs/compiled-data-cache

Conversation

@sascha-egerer

Copy link
Copy Markdown
Contributor

No description provided.

@sascha-egerer
sascha-egerer requested a review from Copilot July 28, 2026 07:45
Correct the stale 'no need to cache the CoreRuleSet' note and show the
lazy CoreRuleSetMatcher factory plus setCompiledDataCache in the OWASP
CRS page; add the same for the bad-IP snapshot.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the documentation to explain when and how to use Flowd\Phirewall\Support\CompiledDataCache to avoid repeated parsing/compilation costs for preset data under PHP-FPM (and similar runtimes), and links the feature pages back to a central “Presets” explanation.

Changes:

  • Expanded OWASP CRS docs to recommend caching parsed rule-file data via CompiledDataCache.
  • Added Bad-IP preset guidance for caching the compiled IP snapshot tables.
  • Introduced a new “Caching expensive preset data” section in the Presets advanced docs, including usage and operational notes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
docs/features/owasp-crs.md Documents caching parsed CRS rule files using CompiledDataCache and links to Presets caching section.
docs/features/bad-ip-preset.md Documents caching the compiled Bad-IP snapshot data using CompiledDataCache.
docs/advanced/presets.md Adds central documentation for CompiledDataCache, its behavior, and integration pattern.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/advanced/presets.md Outdated
Comment thread docs/features/owasp-crs.md
Comment thread docs/features/bad-ip-preset.md

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@sascha-egerer
sascha-egerer merged commit 0b88801 into main Jul 28, 2026
4 checks passed
@sascha-egerer
sascha-egerer deleted the docs/compiled-data-cache branch July 29, 2026 09:15
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.

2 participants