Open pcfreak30 opened 4 years ago
Hi @pcfreak30 🤚
Thanks a million for your contribution!
Will it be possible to make a Pull Request? 😇
Sorry I am leaving this as is as there is more that is needed given how Pantheon works. See https://pantheon.io/docs/plugins-known-issues#wp-rocket, but ignore the no WP_CACHE.
mainly the cache and wp-rocket config need a relative symlink to the files folder, which is a sibling to the code folder as the install
on the host which would be from the root install ln -s ../files/cache wp-content/cache
and ln -s ../files/wp-rocket-config wp-content/wp-rocket-config
. Folders may need to be manually created 1st, and UI help for this.
Overall this should be enough info to add in support.
Thanks.
Hi @pcfreak30 & @GeekPress, I'm Carl from Pantheon Support and have been investigating the conflicts happening with WP-Rocket with Pantheon. Happy to help out seeing more plugins being compatible with the Platform.
For this specific plugin, we have observed that it keeps on modifying the WP_CACHE value to true which at the moment is conflicting with Pantheon's built-in cache.
At the moment, the suggested https://docs.wp-rocket.me/article/61-disable-page-caching is not working so what we would like to suggest to as much as possible set WP_CACHE to be always false using this snippet https://gist.github.com/carl-alberto/32dfb84d2aa485430ae7a1b848767309
We would like to know what plugin features will be affected if it is disabled if it is set to false or maybe there would be a way to make it work that we haven't discovered yet so the plugin will play along nicely in the platform?
https://pantheon.io/docs/plugins-known-issues#wp-rocket should be updated.
@carl-alberto We plan to work on an auto-compatibility as soon as possible 😀 Will it be possible to give us a Pantheon test account? It will be required to make our QA process. You can contact me at jonathan [at] wp-media.me
Thanks for the reply @GeekPress, sent you an email to assist you in setting up a testing account
pantheon
subscriber to the list of common subscribers in init_common_subscribers()
Pantheon_Cache
class existence in rocket_activation()
, to set the filter value to true
before trying to write in advanced-cache.php
filerocket_deactivation()
, to not try to write a blank advanced-cache.php
file when Pantheon_Cache
existswp-config.php
with a callback on rocket_set_wp_cache_constant
in both functionsAdd a new third party subscriber Pantheon
. In this subscriber, we will:
Pantheon_Cache
class checkdo_rocket_generate_caching_files
rocket_cache_mandatory_cookies
rocket_display_varnish_options_tab
advanced-cache.php
notice, by removing the AdminSubscriber::notice_advanced_cache_permissions
callback on admin_notices
advanced-cache.php
file, by adding a callback on filter in rocket_generate_advanced_cache_file
with a value of true
wp-config.php
with a callback on rocket_set_wp_cache_constant
after_rocket_clean_domain
, calling pantheon_clear_edge_all()
if the function existsAn [M]
task considering the development & testing work needed to make sure it all works
Hi @GeekPress! Where would be a good place to collaborate and track down issues raised by Pantheon customers with the WP Rocket plugin?
@carl-alberto Sorry for the delay.
You can report any issues related to WP Rocket on this repo :)
Thanks for the reply @GeekPress , seems no critical issues popping up from Pantheon's end from the past 3 months so it seems your recent deployments are working fine :)
If there are users having issues in the platform, please refer them here https://pantheon.io/docs/plugins-known-issues#wp-rocket or if you have all the autocompatibility in the plugin in place and feel that those workarounds that we have are not needed anymore and can be removed from out documentation, feel free to ping us or open up a PR in the Pantheon docs
Related ticket: https://secure.helpscout.net/conversation/1559941223/276126/
Related as well - https://secure.helpscout.net/conversation/1870169543/340933/ (waiting for feedback)
Related - https://secure.helpscout.net/conversation/2074575621/383322/ (advanced-cache.php got wiped up on a Pantheon commit and not re-added after that by WP Rocket)
While Pantheon has some quirks due to their inforced git based setup, the following is a starting point for supporting it. This was developed through a client project.
https://wordpress.org/plugins/pantheon-advanced-page-cache/ is required
The intent is this can kick start adding some support to the core.