Clear cache and regenerate
-
Hi,
I made a website getting information from 2 other wordpress websites, the problem is i need to clear cache after 20m of all website. How can i regenerate the page cache? I tried using crawler, but it won’t work since doesn’t exist a sitemap. I currently delete all cache using cron after 20m, but i can’t regenerate the cache after it. I tried to make a curl to page (not working), but when i access the page after 20m, the page takes too long to load (since it is recreating the cache on my access).
Any ideas of how i can regenerate the cache? In my case, regenerate home cache will solve my problem.My cron script:
<?php define( 'WP_USE_THEMES', false ); require( '/var/www/html/wp-load.php' ); do_action( 'litespeed_purge_all' ); $ch = curl_init('https://mywebsite.com'); curl_exec($ch); curl_close($ch); echo "done"; ?>
- The topic ‘Clear cache and regenerate’ is closed to new replies.