{"id":1377,"date":"2023-08-04T12:51:21","date_gmt":"2023-08-04T12:51:21","guid":{"rendered":"https:\/\/mklasen.com\/?p=1377"},"modified":"2023-08-07T13:37:04","modified_gmt":"2023-08-07T13:37:04","slug":"force-refresh-php-fpm-or-litespeed-cache","status":"publish","type":"post","link":"https:\/\/mklasen.com\/force-refresh-php-fpm-or-litespeed-cache\/","title":{"rendered":"Force refresh PHP-FPM or Litespeed cache"},"content":{"rendered":"\n
The other day I ran into an issue while deploying new code to the Dutch Hosting Platform Antagonist. It seemed like Symlinks were not refreshed when a new release was pushed, resulting into unexpected issues like broken links to assets and PHP code not updating.<\/p>\n\n\n\n
These issues were immediately resolved by changing the PHP version. So, the issues were resolved by restarting the PHP process.. Hmm..<\/p>\n\n\n\n
After a whole bunch of testing and talking to customer support, there was one<\/em> solution that I could implement into the deploy scripts: killing the lsphp service.<\/p>\n\n\n\n All issues were resolved after including this snippet in the deployment script after all others tasks were executed:<\/p>\n\n\n\n Simple and effective!<\/p>\n","protected":false},"excerpt":{"rendered":" The other day I ran into an issue while deploying new code to the Dutch Hosting Platform Antagonist. It seemed like Symlinks were not refreshed when a new release was pushed, resulting into unexpected issues like broken links to assets and PHP code not updating. These issues were immediately resolved by changing the PHP version. […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"acf":[],"yoast_head":"\n\/usr\/bin\/pkill lsphp<\/code><\/pre>\n\n\n\n