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
Publishing via XMLRPC does not automatically clear the cache #744
Comments
StatusWas able to replicate issue. Steps to reproduceNote, I did not use XMLRPC. I was informed by @jaswsinc that it would be okay to use XMLRPC, but I could actually use Wordpress Rest API to do this. @jaswsinc writes...
ResultsCache does not clear when posting via WP CLI. Deleting/Editing/Updating those post/page(s) via the WP dashboard does clear the cache. Comet Cache only recognizes and clears the cache when changes are done in the WP Dashboard. |
@renzms Thanks for testing and for sharing that information. @jaswsinc Can I get a time estimate on this? |
Testing via WP-CLI (over SSH) is not the same as testing via XMLRPC. The WP-CLI tool operates in a CLI context. Meaning, web server environment variables may not be present, depending on your configuration. For the best WP-CLI compatibility it is suggested that you enable one of these flags when dealing with Comet Cache.
We can improve compatibility with WP-CLI though. For example, by refactoring and taking a closer look at For XMLRPC compatibility I'm not sure. That's a web-based HTTP API, which means it doesn't operate in a CLI context like WP-CLI does. If automatic cache clearing is not working when posting via XMLRPC, it could be that we need to take a closer look at hooks we attach to. If someone can find out more about the problem for me, my estimate would be lower, but for now I'll say three additional days to research and fix this. |
@jaswsinc Thanks! @renzms writes...
That's really a separate issue than this XMLRPC issue. Can you please open another GitHub issue, "WP-CLI Compatibility: Create Post Command" and document your findings there (please also quote Jason's reply above Re: WP-CLI)? We'll have to research that issue separately. @jaswsinc writes...
@renzms Could you do some more research on this? You'll probably need to get a client that connects to a WordPress installation via XMLRPC to publish/edit posts. See https://en.support.wordpress.com/xml-rpc/. Ping me on Slack if you have any additional questions. |
StatusWas not able to replicate issue. Steps
ResultsCache cleared when posting via WP Desktop App. Comet Cache recognizes and clears the cache when changes are done in the WP Desktop App. |
Additional testing done via https://github.com/letrunghieu/wordpress-xmlrpc-client Using XML-RPC client with WP 4.6.1, PHP 7.0, Comet Cache Pro Version 160917, was not able to replicate issue.
|
I also just ran a test using the WordPress iOS app on my iPhone (WordPress 4.6.1, Comet Cache Pro v160917, iOS v10.0.2, WordPress iOS App v6.5) and confirmed that updating an existing post clears the cache for that post, so I'm going to close this as resolved. Thanks for the testing, @renzms! :-) |
As reported here, when publishing a post via XMLRPC Comet Cache does not properly detect this and clear the appropriate cache files. If, for example, someone publishes a new post, the home page cache does not get cleared and the new post is not visible.
This needs to be tested to confirm and researched to figure out what needs to be done to fix it.
The text was updated successfully, but these errors were encountered: