Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebuildData to add --no-cache option (CACHE_NONE) #749

Closed
mwjames opened this Issue Jan 21, 2015 · 7 comments

Comments

Projects
None yet
2 participants
@mwjames
Copy link
Contributor

mwjames commented Jan 21, 2015

Follow-up on [0] to add a --no-cache option for the rebuildData maintenance script to avoid a potential issue as reported by [0].

[0] https://semantic-mediawiki.org/wiki/Thread:Help_talk:Repairing_SMW%27s_data/rebuildData.php_freezes_at_certain_page_IDs/reply_(2)

@mwjames mwjames added the enhancement label Jan 21, 2015

@jongfeli

This comment has been minimized.

Copy link
Contributor

jongfeli commented Jan 21, 2015

Depending on what kind of object caching is used php in CLI will not work
or not work reliable. We used to run our wiki with Xcache and object cache
enabled but Xcache does not support CLI. This means any maintenance script
that run from the command line will not work. We had to configure a switch
in LocalSettings.php to detect if PHP is running in CLI mode to disable
Xcache, that woked fine. I am not sure what it looked like, we are running
our wiki on PHPs zend opcache now, it does not have object caching.

It seems that this issue affects Semantic Mediawiki maintenance script but
it is not a Sematic MediaWiki problem as such.

On Wed, Jan 21, 2015 at 2:04 PM, mwjames notifications@github.com wrote:

Follow-up on [0] to add a --no-cache option fro the rebuildData
maintenance script to avoid a potential issue as reported by [0].

[0]
https://semantic-mediawiki.org/wiki/Thread:Help_talk:Repairing_SMW%27s_data/rebuildData.php_freezes_at_certain_page_IDs/reply_(2)


Reply to this email directly or view it on GitHub
#749.

@mwjames

This comment has been minimized.

Copy link
Contributor Author

mwjames commented Jan 21, 2015

Well, the only way I could think of (as I can't replicate the issue) is to set $GLOBALS['wgMainCacheType'] = CACHE_NONE; for the time the script is run whether this is sufficient or not I do not know.

@jongfeli

This comment has been minimized.

Copy link
Contributor

jongfeli commented Jan 21, 2015

That works, it is the default "setting" when you installl MediaWiki but in my opinion it is not a wise thing to override the caching setup via SMW. There is a lot of caching software out there and maybe someone is using something with a special configuration that does work in CLI. You use caching to speed up your wiki but when SMW then overrides the caching setup people wonder why there wiki is running there daily maintenance script so slow all of a sudden. I could start a page on the SMW site on how to make caching work in combination with PHP in CLI mode.

@mwjames

This comment has been minimized.

Copy link
Contributor Author

mwjames commented Jan 21, 2015

You use caching to speed up your wiki but when SMW then overrides the caching setup people wonder why there wiki is

The setting would be only active for when --no-cache is used as option and only for the time the script is run.

@mwjames

This comment has been minimized.

Copy link
Contributor Author

mwjames commented Jan 21, 2015

I could start a page on the SMW site on how to make caching work in combination with PHP in CLI mode.

Extending the documentation is always appreciated.

@jongfeli

This comment has been minimized.

Copy link
Contributor

jongfeli commented Jan 21, 2015

Used as an option you should be ok but it only applies to the SMW
maintenance scripts. Any MW maintenance scripts used will "not" work.

On Wed, Jan 21, 2015 at 4:26 PM, mwjames notifications@github.com wrote:

I could start a page on the SMW site on how to make caching work in
combination with PHP in CLI mode.

Extending the documentation is always appreciated.


Reply to this email directly or view it on GitHub
#749 (comment)
.

mwjames added a commit that referenced this issue Feb 1, 2015

Merge pull request #770 from SemanticMediaWiki/rebuilddata-script
rebuildData add --no-cache/--debug option, refs #749, #766
@mwjames

This comment has been minimized.

Copy link
Contributor Author

mwjames commented Feb 1, 2015

Implemented with #770

@mwjames mwjames closed this Feb 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.