Skip to content

Update BBCode plugin to version 2.0.0#680

Merged
Fraenkiman merged 2 commits intoflatpressblog:masterfrom
Fraenkiman:Update-BBCode-plugin-to-version-2.0.0
Oct 12, 2025
Merged

Update BBCode plugin to version 2.0.0#680
Fraenkiman merged 2 commits intoflatpressblog:masterfrom
Fraenkiman:Update-BBCode-plugin-to-version-2.0.0

Conversation

@Fraenkiman
Copy link
Collaborator

  • Adds request-local memoization and APCu caches across the BBCode plugin without changing output.
  • The parser is cached per request and in APCu with a path|mtime|size signature; on APCu hits a cloned base parser is filtered so third-party extensions still apply.
  • Image handling caches getimagesize and IPTC for local files and memoizes scaling, and toolbar image and attachment lists are cached by directory mtime.
  • Large regex tables in bbcode2html are made static, and undoHtml uses a single batch replacement to cut allocations.
  • APCu use is gated by is_apcu_on(), keys auto-invalidate on content changes.

- Adds request-local memoization and APCu caches across the BBCode plugin without changing output.
- The parser is cached per request and in APCu with a path|mtime|size signature; on APCu hits a cloned base parser is filtered so third-party extensions still apply.
- Image handling caches getimagesize and IPTC for local files and memoizes scaling, and toolbar image and attachment lists are cached by directory mtime.
- Large regex tables in bbcode2html are made static, and undoHtml uses a single batch replacement to cut allocations.
- APCu use is gated by is_apcu_on, keys auto-invalidate on content changes.
@Fraenkiman Fraenkiman merged commit 8ef47f8 into flatpressblog:master Oct 12, 2025
3 checks passed
@Fraenkiman Fraenkiman deleted the Update-BBCode-plugin-to-version-2.0.0 branch December 21, 2025 20:12
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