Thread:Semantic-mediawiki.org:Community portal/Semantic properties cannot be queried unless page is re-saved

I'm running MediaWiki with the Semantic MediaWiki and LinkedWiki extensions. Semantic MediaWiki is configured to store semantic data in 4store and I can query 4store with SPARQL and show the results on the wiki using LinkedWiki extension.

I also have a form that I use to create technology roadmaps and each technology roadmap contains sub-objects that store semantic properties for a particular technology such as support status, start and end dates, and version.

When I save the page, the SPARQL query that queries those semantic properties doesn't return anything because it doesn't see the semantic properties I just saved for the technology roadmap page I created. One way I can make it work it to click on edit and then click on save. I don't have to make any changes, I just re-save the page and it works. Another way to make it work it to run the SMW_refreshData.php script to refresh the page that I just created.

I read about this issue and I tried using extensions that disable cache on a per page basis (MagicNoCache) and I also tried using hooks to run the refresh data script after the page is created (super slow and it didn't work).

Has anyone ever run into a similar problem?

Do you have any ideas on how I can solve this?

Thank you.