Home › Forums › Backend Issues (wp-admin) › Unable to edit field once created › Reply To: Unable to edit field once created
Hi @elliot!
It’s me once again. The simple solution would be the one displayed here
So the following would work for me:
echo ‘flush_all’ | nc localhost 11211
or in PHP something like this:
if ( file_exists( WP_CONTENT_DIR . ‘/object-cache.php’ ) &&
$fp = fsockopen(“localhost”, 11211, $errno, $errstr, 30) ) {
fwrite($fp, “flush_all\r\n”);
$output = ”;
while (!feof($fp))
$output .= fgets($fp, 128);
// do whatever you want with $output… what you should get is “OK”
fclose($fp);
}
Cheers
Günther
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.