You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a few niggles with this: It isn't very performant (separate framework boot on every save request in CMS?), and it presumably can't read draft content because it's not performed in an authenticated session. So as an author, it appears that you can't get feedback on your draft content before you publish it, which is exactly when you'd want it, right?
Have you considered using Director::test() for this? It runs the request in process, and can account for stage=Stage.
Also, doing this with file_get_contents() isn't best practice - lots of systems have allow_url_fopen turns off for security reasons - it should use a HTTP client like Guzzle.
The text was updated successfully, but these errors were encountered:
I'll leave them open as I was never happy with using file_get_contents, it was just the easiest way to get everything at once to parse (given that content can come from anywhere) it also required #16 which was really unsavoury for me
The
Analysis
class runs a HTTP request against the webserver to get the contents in https://github.com/vulcandigital/silverstripe-seo/blob/master/src/Analysis/Analysis.php#L164I've got a few niggles with this: It isn't very performant (separate framework boot on every save request in CMS?), and it presumably can't read draft content because it's not performed in an authenticated session. So as an author, it appears that you can't get feedback on your draft content before you publish it, which is exactly when you'd want it, right?
Have you considered using
Director::test()
for this? It runs the request in process, and can account forstage=Stage
.Also, doing this with
file_get_contents()
isn't best practice - lots of systems haveallow_url_fopen
turns off for security reasons - it should use a HTTP client like Guzzle.The text was updated successfully, but these errors were encountered: