Hello everyone,

I've created a demo site/loaded demo records etc and then decided to move everything to a new server. I've updated invenio-local.conf file with the new value for CFG_SITE_URL and run inveniocfg --reset-sitename (also tried --update-all).

Almost everything worked perfectly, however in $CFG_SITE_URL/help/admin some of the URLs still show the old URL. More specifically all the rows in the "Admin interface" column show the old URL, while all the rest URLs have been updated successfully.

From what i see in the invenio/admin/admin.webdoc file, the source of this behavior is the different treatment of the two columns. See a snippet of the code:
<td>
<a href="<CFG_SITE_URL>/admin/websubmit/websubmitadmin.py">WebSubmit Admin Interface</a>
</td>
<td>
  <a href="websubmit-admin-guide">WebSubmit Admin Guide</a>
</td>

The second href displays properly the new sitename, while the first shows the old sitename.

Needless to say that config.py is correctly updated with the new value, apache was restarted (several times) and webcoll was run for the whole site. The same happens also in some other help pages ($CFG_SITE_URL/help/submit-guide for instance). FYI, the DB has almost no reference of the old sitename (with the exception of the URLs in the 856 tag in the demo submissions, but this is normal).

In the filesystem, the old sitename still exists in the /opt/invenio/var/cache/[...] pages The admin page (/opt/invenio/var/cache/webdoc/admin-pages/admin/admin.body-en.html) is one of the cached pages, which explains the output i get.

Can I delete (or somehow re-generate) these cached semi-static pages?

Best regards,
Theodoros

Reply via email to