general:wordpress
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| general:wordpress [2020/11/17 18:16] – sunkan | general:wordpress [2022/11/28 12:11] (current) – sunkan | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| 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.1605636992.txt.gz · Last modified: 2020/11/17 18:16 by sunkan