Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Most of the job is already done by the `EmbeddedQueryDependencyLinksStore` to track and update query dependencies. To eliminate necessary SQL/SPARQL connections `EmbeddedQueryResultCache` ought to cache a subject list returned from the `QueryEngine`. We don't cache the string result of a printer == it means we don't interfere with how the printer manipulates the data, `EmbeddedQueryResultCache` as the name suggests caches the return object (aka `QueryResult`) from the QueryEngine before it is forwarded to an individual printer. If for some reason `EmbeddedQueryDependencyLinksStore` is not enabled then auto-invalidation of the `EmbeddedQueryResultCache` can not occur but instead (same as of now == manual intervention using the purge button) setting `$GLOBALS['smwgEmbeddedQueryResultCacheRefreshOnPurge'] = true;` can be used to emit a purge action event to invalidate all query cache items stored with the corresponding article (aka subject). `$GLOBALS['smwgEmbeddedQueryResultCacheLifetime'] = 60 * 60 * 24; // a day` declares the lifetime of a cached item
- Loading branch information
Showing
16 changed files
with
447 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.