Paul
Well the weekly CRON job has been triggered this night but doesn't work yet…
I got a "301 Moved Permanently"
Could you please help me?
Peter, after your previous post, last week, when I tried to load the url (https://www.my_site.com/index.php?tmpl=component&cleancache=ok) directly from a browser, it was OK. I got no "301 Moved Permanently", and I the site cache had been cleaned as expected.
But this night when the CRON job opened a php file that contains this code:
$ch1 = curl_init("https://www.my_site.com/index.php?tmpl=component&cleancache=ok");
curl_exec($ch1);
curl_close($ch1);
it resulted in a "301 Moved Permanently" in CRON logs and no cache cleaned…
In CRON logs:
[2024-02-19 04:27:02] ## OVH ## START - 2024-02-19 04:27:02.167523 executing: /usr/local/php7.3/bin/php /homez.899/my_site/www/my_cripts/my_cleancache/cleancache.php
[2024-02-19 04:27:02] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">[2024-02-19 04:27:02] <html><head>
[2024-02-19 04:27:02] <title>301 Moved Permanently</title>
[2024-02-19 04:27:02] </head><body>
[2024-02-19 04:27:02] <h1>Moved Permanently</h1>
[2024-02-19 04:27:02] <p>The document has moved <a href="https://www.my_site.com/index.php?tmpl=component&cleancache=ok">here</a>.</p>
[2024-02-19 04:27:02] </body></html>
[2024-02-19 04:27:02]
[2024-02-19 04:27:02] ## OVH ## END - 2024-02-19 04:27:02.397042 exitcode: 0
In Error logs:
I don't get error at [2024-02-19 04:27:02]