Commit type | Emoji |
---|---|
Initial commit | ๐ :tada: |
Readme | ๐ :eyes: |
Add or update a .gitignore file | ๐ :see_no_evil: |
Add or update snapshots | ๐ธ :camera_flash: |
Folder .github | ![]() :octocat: |
Version tag | ๐ :bookmark: |
New feature | โจ :sparkles: |
Introduce breaking changes | ๐ฅ :boom: |
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
#!/bin/bash | |
# | |
# PHP Syntax linter, checks syntax before commit actually happens | |
# Save this file in your git project as .git/hooks/pre-commit and make sure it's executable | |
# PHP lint command, modify if necessary | |
LINT='/usr/bin/php -l' | |
files=$(git diff --cached --name-only --diff-filter=ACM | grep "\.php$") | |
if [ "$files" = "" ]; then |
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
$ curl --help | |
Usage: curl [options...] <url> | |
--abstract-unix-socket <path> Connect via abstract Unix domain socket | |
--alt-svc <file name> Enable alt-svc with this cache file | |
--anyauth Pick any authentication method | |
-a, --append Append to target file when uploading | |
--basic Use HTTP Basic Authentication | |
--cacert <file> CA certificate to verify peer against | |
--capath <dir> CA directory to verify peer against | |
-E, --cert <certificate[:password]> Client certificate file and password |
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
<?php | |
add_filter('acf/pre_load_reference', 'hwk_bypass_get_field_ref', 10, 3); | |
function hwk_bypass_get_field_ref($return, $field_name, $post_id){ | |
if(is_int($post_id)) | |
$return = acf_get_field($field_name, $post_id); | |
return $return; | |
} |
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
Regarding why the write operation was of poor throughput it would depend on the amount of data that would be inserted by the operation along with any deadlocks or wait events waiting for a lock it may need to take hold off as well. To that end if possible you could run those write operations to check for any deadlocks(by checking the output of the show engine innodb status) they may be causing , further you can also run profile on them to see what stage of the execution is slowing down the whole query. The explain plan will also provide us with insights on the query execution plan allowing you to make changes to improve efficiency. | |
https://dev.mysql.com/doc/refman/5.7/en/show-profile.html | |
https://dev.mysql.com/doc/refman/5.7/en/show-engine.html | |
https://dev.mysql.com/doc/refman/5.7/en/explain.html | |
>>Do we have to look at using managed Aurora cluster with read replicas, connection pooling for better throughput? | |
It is indeed an alternative that you can consider, your workload contains both read and writ |
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
comment | |
counts | |
plugins | |
learndash_reports | |
learndash_admin_profile | |
wc_session_id |
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
//thanks to https://gist.github.com/sultann/24baa5483b4632c3cf214a8de5648204#file-ld-auto-mark-complete-php-L17 for most of | |
//this code, i just corrected it to work with ld_lesson_tag to grab the tags as the original version returned empty | |
//array since it was looking for standard wp tags | |
function ld_is_tagged($postId) { | |
//get all learndash tags on post | |
$tags = wp_get_post_terms($postId,'ld_lesson_tag'); | |
foreach ($tags as $tag) { | |
//need to check for auto-mark-complete tag exists on this post |
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
// https://developer.wordpress.org/reference/functions/add_post_type_support/ | |
add_action( 'init', 'lelandf_custom_fields_support_learndash' ); | |
function lelandf_custom_fields_support_learndash() { | |
$post_types = [ | |
'sfwd-courses', | |
'sfwd-lessons', | |
'sfwd-topic', | |
]; | |
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
<?php | |
/** | |
* Contains the grade for a given user. | |
* | |
* @since 1.0.0 | |
* | |
* @package LearnDash_Gradebook | |
* @subpackage LearnDash_Gradebook/includes | |
*/ |
NewerOlder