User Tools

Site Tools


general:wordpress

http://wordpress.org/support/topic/make-a-copy-of-wordpress-website-on-another-domain
http://codex.wordpress.org/Moving_WordPress
http://codex.wordpress.org/Changing_The_Site_URL
https://github.com/interconnectit/Search-Replace-DB

One reason you may get PCLZIP_ERR_BAD_FORMAT is that php5-curl is missing
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 “flushall”.

-- Usage: redis-cli --eval <thisfile.lua> , 'the_search_string_*'
-- Example: redis-cli --eval remove_matching_keys.lua , 'someprefix_*'

-- Solution adapted from this: https://stackoverflow.com/a/65427976
-- the "," is to pass an argument and not a key to the lua script

local searchstring=ARGV[1]
local keys_to_delete = redis.call('keys', searchstring)
-- return keys_to_delete
for _,k in ipairs(keys_to_delete) do
  redis.call('del', k)
end
general/wordpress.txt · Last modified: 2022/11/28 12:11 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki