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

Replace slugs qts_page_request cache with transient #1182

Merged
merged 1 commit into from
Jun 6, 2022

Commits on Jun 6, 2022

  1. Replace slugs qts_page_request cache with transient

    The WP cache is not appropriated for very short term storage.
    Moreover a wrong value could have been stored between different requests.
    Replace the cache call with a transient expiring after 30s.
    Delete the transient right after reading it.
    Rename it to `qtranslate_slugs_matched_page`.
    herrvigg committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    621a034 View commit details
    Browse the repository at this point in the history