litespeed_conf
litespeed_conf
Appears in: wp-stateless.3.0, wp-stateless.3.0.1, wp-stateless.3.0.2, wp-stateless.3.0.3, wp-stateless.3.0.4, wp-stateless.3.1.0, wp-stateless.3.1.1, wp-stateless.3.2.2, wp-stateless.3.2.4, wp-stateless.3.2.5, wp-stateless.3.3.0, wp-stateless.3.4.0, wp-stateless.3.4.1, wp-stateless.4.0.3, wp-stateless.4.0.4, wp-stateless.4.1.1
Hook Type: filter
Displaying hooks found in version: wp-stateless.4.1.1apply_filters('litespeed_conf') is found 4 times:
- /lib/classes/compatibility/lite-speed-cache.php line 133
* /var/www/wp-content/uploads/2019/10/22645b39-asdf.jpg * */ public function sync_image($row_img, $local_file) { $rm_ori_bkup = apply_filters('litespeed_conf', 'img_optm-rm_bkup'); $gs_name = apply_filters('wp_stateless_file_name', $row_img->src); $cloud_meta = $this->_get_md5_meta($row_img->post_id); if (empty($cloud_meta)) $cloud_meta = array(); if (!$rm_ori_bkup) {
- /lib/classes/compatibility/lite-speed-cache.php line 158
* @param $row_img * @param $local_file */ public function sync_webp($row_img, $local_file) { $optm_webp = apply_filters('litespeed_conf', 'img_optm-webp'); if ($optm_webp) { $gs_name = apply_filters('wp_stateless_file_name', $row_img->src . '.webp'); $cloud_meta = $this->_get_md5_meta($row_img->post_id); $cloud_meta['fileMd5'][$gs_name] = md5_file($local_file); $this->_update_md5_meta($row_img->post_id, $cloud_meta);
- /lib/classes/compatibility/lite-speed-cache.php line 401
// In case image optimized before enabling Stateless. // We only need to copy from local to GCS, otherwise file_md5 meta should be available. foreach ($image_sizes as $img) { $file_path = $img['path']; $rm_ori_bkup = apply_filters('litespeed_conf', 'img_optm-rm_bkup'); $optm_webp = apply_filters('litespeed_conf', 'img_optm-webp'); if (!$rm_ori_bkup) { $extension = pathinfo($file_path, PATHINFO_EXTENSION); $bk_file = substr($file_path, 0, -strlen($extension)) . 'bk.' . $extension; $bk_file_optm = substr($file_path, 0, -strlen($extension)) . 'bk.optm.' . $extension;
- /lib/classes/compatibility/lite-speed-cache.php line 402
// We only need to copy from local to GCS, otherwise file_md5 meta should be available. foreach ($image_sizes as $img) { $file_path = $img['path']; $rm_ori_bkup = apply_filters('litespeed_conf', 'img_optm-rm_bkup'); $optm_webp = apply_filters('litespeed_conf', 'img_optm-webp'); if (!$rm_ori_bkup) { $extension = pathinfo($file_path, PATHINFO_EXTENSION); $bk_file = substr($file_path, 0, -strlen($extension)) . 'bk.' . $extension; $bk_file_optm = substr($file_path, 0, -strlen($extension)) . 'bk.optm.' . $extension; if (file_exists($bk_file)) {