Clear root folder when WPML uses a directory for the default language #5611
Labels
3rd party compatibility
Issues related to 3rd party compatibility like theme, plugin or hosting
effort: [S]
1-2 days of estimated development time
module: cache
needs: documentation
Issues which need to create or update a documentation
priority: medium
Issues which are important, but no one will go out of business.
severity: moderate
Feature isn't working as expected but has work around to get same value
type: bug
Indicates an unexpected problem or unintended behavior
Milestone
Before submitting an issue please check that you’ve completed the following steps:
3.12.3.2
Describe the bug
When WPML uses the option
use directory for default language
, the root folder is inaccessible by any of our cache-purging function.The default language will have a separate folder from the root in this scenario.
We are doing that kind of check when WPML is enabled:
wp-rocket/inc/functions/files.php
Lines 711 to 713 in 8c603e2
We need compatibility with WPML to detect that the sub-option is enabled and include the root folder in actions.
Temporarily fixed by clearing files from root using:
To Reproduce
Steps to reproduce the behavior:
use directory for default language
Expected behavior
All caches should be accessible to purge regardless of what options are enabled on WPML.
Screenshots
Added to decription.
Additional context
Ticket - https://secure.helpscout.net/conversation/2071911982/382573/
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: