-
Notifications
You must be signed in to change notification settings - Fork 92
gw-cache-buster.php: Added deprecation notice to the snippet.
#1139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe entire Gravity Forms Cache Buster snippet has been removed from the codebase. All implementation, including the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
gravity-forms/gw-cache-buster.php (1)
3-5: Add a formal@deprecatedannotation and a no-op guardThe snippet currently relies on a plain prose notice. Adding a proper PHPDoc
@deprecatedtag (with version and alternative) lets IDEs/static-analysis tools flag usage automatically.
Additionally, return early (orexit;) so that including this file is guaranteed to be a no-op, preventing developers from mistakenly thinking the original functionality still runs./** * WARNING! THIS SNIPPET IS DEPRECATED. 🚧 + * + * @deprecated 2025.07.15 Use the Cache Buster plugin via Spellbook instead. + * * This functionality is now available as a free plugin via Spellbook. * You can read more about it here: https://gravitywiz.com/cache-busting-with-gravity-forms/ */ + +// Prevent execution if this file is loaded directly. +return;
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
gravity-forms/gw-cache-buster.php(1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: veryspry
PR: gravitywiz/snippet-library#1077
File: gravity-forms/gw-require-alt-text-description-post-image.php:23-32
Timestamp: 2025-05-30T13:53:21.893Z
Learning: In Gravity Forms snippets, use 'gravityforms' as the translation domain for internationalization functions instead of creating custom domains, to maintain consistency with the related plugin.
📚 Learning: in gravity forms snippets, use 'gravityforms' as the translation domain for internationalization fun...
Learnt from: veryspry
PR: gravitywiz/snippet-library#1077
File: gravity-forms/gw-require-alt-text-description-post-image.php:23-32
Timestamp: 2025-05-30T13:53:21.893Z
Learning: In Gravity Forms snippets, use 'gravityforms' as the translation domain for internationalization functions instead of creating custom domains, to maintain consistency with the related plugin.
Applied to files:
gravity-forms/gw-cache-buster.php
📚 Learning: when working with gravity forms, `rgar()` is a utility function that safely retrieves values from ar...
Learnt from: saifsultanc
PR: gravitywiz/snippet-library#1079
File: gp-populate-anything/gppa-acf-repeater-mapper.php:78-87
Timestamp: 2025-04-17T02:43:14.227Z
Learning: When working with Gravity Forms, `rgar()` is a utility function that safely retrieves values from arrays and can be used to implement cleaner safety checks compared to direct conditionals.
Applied to files:
gravity-forms/gw-cache-buster.php
Context
💬 Slack: https://gravitywiz.slack.com/archives/D042XMBHJ91/p1753971142001439
Summary
Deprecation Notice.
Plugin repo: https://github.com/gravitywiz/gf-cache-buster