In my scripts I need to check if the correct nodewords are set. If not i have to change them. But after that the new nodewords are not taken at this pageload because of the caching in nodewords_load_tags.

I think a better solution would be if you cache the new values on saving, so a second call of nodewords_load_tags after nodewords_save_tags would return the new values.

CommentFileSizeAuthor
#2 nodewords-n1568772.patch357 bytesdamienmckenna

Comments

damienmckenna’s picture

Version: 6.x-1.13 » 6.x-1.x-dev
damienmckenna’s picture

Title: Caching in nodewords_load_tags » Reload meta tags after they are saved
Status: Active » Needs review
StatusFileSize
new357 bytes

Try this out for size, it runs nodewords_load_tags() at the end of nodewords_save_tags() so all future API interactions will get the correct data.

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks for the idea.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.