• I need to refresh cache daily in order to have the images of my Facebook feeds show up in WordPress. Is there a patch for this issue?


Viewing 7 replies - 1 through 7 (of 7 total)
  • My feed usually updates around 6:30pm daily, but I haven’t found where this is set or triggered.

    Or at least, it did until yesterday, when that didn’t happen. A manual refresh today now shows “There are no items in this feed.”

    Sigh. I guess Facebook has broken the plug-in again.

    Hi, same problem here, so I have create a CRON task to flush data each night on table fb_data

    Hi, can you please share your CRON script task please ? I have the same problem.

    Thread Starter engbok

    (@engbok)

    HI @sebwpmorbihan , it will be nice if you can share and guide us how you do that in details.
    Thanks

    Hi, @engbok and @jonassolutions I just send “delete FROM yourdatabase_fb_data

    I use CRON to launch each day a php page with that code :

    <?php
    	error_reporting(E_ALL);
    
    	$db_charset = "utf8";
    
    	$db_server         = ""; // Ex : localhost
    	$db_name           = "";
    	$db_username       = "";
    	$db_password       = "";
    
    	$cmd_mysql = "mysqldump";
    
    	$connexion = mysqli_connect($db_server, $db_username, $db_password, $db_name);
    
    	$command = 'delete FROM yourdatabase_fb_data';
    
    	$results = mysqli_query($connexion, $command);
    ?>

    Juste change “your_database”, complete db_name etc ofcourse. Enjoy.

    Thread Starter engbok

    (@engbok)

    Thank you @sebwpmorbihan !
    I have no knowledge about CRON, first time hearing it.
    I googled to learn about it today, and find out WordPress has CRON plug in. Maybe I should start from there.

    no problem @engbok do it by steps. first, try for example in sql console just “delete FROM yourdatabase_fb_data” and look if your problem is solve (don’t drop your table, just empty it).

    Next if it works, create a page with the entire code I have send and upload it on your server. When you go to your adress ” https://mysite/mypage.php “, it should solve your problem also.

    And then, if it works, you need to visit your “mypage.php” every 2-3 days to debug facebook plugin.

    An automatic solution is CRON, but only if first and second step works ??

    Have fun !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘I need to refresh Cache daily’ is closed to new replies.