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

How do I change the cache locking type (flock vs sem_get)? #16

Closed
7 tasks done
jaswrks opened this issue Feb 10, 2015 · 6 comments
Closed
7 tasks done

How do I change the cache locking type (flock vs sem_get)? #16

jaswrks opened this issue Feb 10, 2015 · 6 comments

Comments

@jaswrks
Copy link

jaswrks commented Feb 10, 2015


KB Article Creation Checklist
  • Write initial draft for this KB Article; label this issue draft and either questions or tutorials
  • Add required YAML configuration
  • Add Tags for this KB Article to the YAML config (see YAML Keys (Explained))
  • Edit and finalize draft for publishing (remove draft label, add draft-finalized label)
  • Assign Issue to yourself and create Markdown file (remove draft-finalized label, add pending)
  • Project Lead: Review and Publish KB Article (remove pending label, add published label)
Additional TODOs
  • Incorporate the details I discussed here.

KB Article Published @ cometcache.com
📃 See: How do I change the cache locking type (flock vs sem_get)?

:octocat: View Markdown File | ✏️ Edit Markdown File


@jaswrks
Copy link
Author

jaswrks commented Feb 10, 2015

Referencing: wpsharks/comet-cache#373 (comment)

@jaswrks
Copy link
Author

jaswrks commented Mar 12, 2015

Updating zc-hacks.php to zc-cache-lock-type.php.

@raamdev raamdev changed the title How can I alter cache locking? How can I change the cache locking type (flock vs sem_get)? Mar 12, 2015
@raamdev
Copy link
Contributor

raamdev commented Mar 12, 2015

Updated the title to How do I change the cache locking type (flock vs sem_get)?

@raamdev raamdev changed the title How can I change the cache locking type (flock vs sem_get)? How do I change the cache locking type (flock vs sem_get)? Mar 12, 2015
@raamdev
Copy link
Contributor

raamdev commented Mar 12, 2015

Incorporate the details I discussed here.

I suggest we create a separate KB Article called "What is cache locking?" that includes those extra details. We can then trim this KB Article down a bit and move the explanations to the other KB Article.

@jaswrks
Copy link
Author

jaswrks commented Mar 13, 2015

Copy that. I started writing another article about this here: #36

@jaswrks
Copy link
Author

jaswrks commented May 3, 2015

I was just reviewing this. The above ↑ is correct.

<?php
add_filter('zencache\\share::cache_lock_lock_type', function(){
    return 'sem';
});

After Restructure Is Complete

  • The preferred filter name will be: zencache_cache_lock_type
    The old filter name will continue to work however.
<?php
add_filter('zencache_cache_lock_type', function($type = 'flock'){
    return 'sem';
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants