Skip to content
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

deprecate PushCacheFilter (9.4) #10756

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
deprecate PushCacheFilter
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed Oct 19, 2023
commit c02871a8b1e855845bfeb52383b4287f3a67a648
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
* cache.</p>
* <p>If the init param useQueryInKey is set, then the query string is used as
* as part of the key to identify a resource</p>
* @deprecated no replacement for this deprecated http feature
*/
@Deprecated
@ManagedObject("Push cache based on the HTTP 'Referer' header")
public class PushCacheFilter implements Filter
{
Expand All @@ -87,6 +89,11 @@ public class PushCacheFilter implements Filter
private long _renew = System.nanoTime();
private boolean _useQueryInKey;

public PushCacheFilter()
{
LOG.warn(PushCacheFilter.class.getSimpleName() + " is an example class not suitable for production.");
}

@Override
public void init(FilterConfig config) throws ServletException
{
Expand Down