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

Implement a WP cron to clean up the static file cache at regular intervals #1

Open
wpscholar opened this issue Apr 2, 2022 · 0 comments
Assignees

Comments

@wpscholar
Copy link
Member

At the moment, once an HTML file is cached via the file caching mechanism, the only way the item gets purged is if a WordPress event occurs that triggers a purge or a user manually purges. Otherwise, the content is cached indefinitely. Our cache settings promise that HTML files will only be cached for a specific timeframe. While that is more specifically referencing the browser cache, we should respect that same timeframe with our static file caching.

@wpscholar wpscholar self-assigned this Apr 2, 2022
wpscholar added a commit that referenced this issue Feb 22, 2024
…RL_PATH is always set, which prevents the str_replace() call from outputting "Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated"
circlecube added a commit that referenced this issue Feb 23, 2024
* main:
  Ensure that the URL has a trailing slash. This ensures that the PHP_URL_PATH is always set, which prevents the str_replace() call from outputting "Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated"
  add brand plugin test workflow
  add brand plugin test workflow
  fix autofixable lint issues in test file
  add .nvmrc as v16
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

No branches or pull requests

1 participant