general:wordpress
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
general:wordpress [2020/11/17 18:16] – created sunkan | general:wordpress [2022/11/28 12:11] (current) – sunkan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | http:// | + | http:// |
- | http:// | + | http:// |
- | http:// | + | http:// |
- | https:// | + | https:// |
One reason you may get PCLZIP_ERR_BAD_FORMAT is that php5-curl is missing \\ | One reason you may get PCLZIP_ERR_BAD_FORMAT is that php5-curl is missing \\ | ||
This was happening when trying to update striking theme | This was happening when trying to update striking theme | ||
+ | |||
+ | ====== Clear redis cache ====== | ||
+ | Sometimes with WPML there is a need for clearing the redis cache (noticed when restructuring the product categories) | ||
+ | |||
+ | This can be done with this script (when we have multiple prefixes in the DB, otherwise use Redis command " | ||
+ | < | ||
+ | -- Usage: redis-cli --eval < | ||
+ | -- Example: redis-cli --eval remove_matching_keys.lua , ' | ||
+ | |||
+ | -- Solution adapted from this: https:// | ||
+ | -- the "," | ||
+ | |||
+ | local searchstring=ARGV[1] | ||
+ | local keys_to_delete = redis.call(' | ||
+ | -- return keys_to_delete | ||
+ | for _,k in ipairs(keys_to_delete) do | ||
+ | redis.call(' | ||
+ | end | ||
+ | </ |
general/wordpress.txt · Last modified: 2022/11/28 12:11 by sunkan