asafm7
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] Is Stale Served for Naturally Expiring Cache?Sure. Thank you.
Forum: Plugins
In reply to: [LiteSpeed Cache] Is Stale Served for Naturally Expiring Cache?Thanks, @qtwrk.
I also created a GitHub suggestion for asynchronous revalidation that can make the feature more useful. Cloudflare started doing it a few months ago.
Thanks again.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Integrating ContentsquareLooking good so far. Thanks, @antoiub.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Untranslatable textThanks, @antoiub.
Forum: Plugins
In reply to: [OneSignal - Web Push Notifications] Typo in the plugin descriptionThanks, @jon1signal.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] LaTex blockI understand, @jenhooks.
Thanks for the detailed explanation.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] LaTex blockThanks, @jenhooks.
I’m familiar with the option you described.
The changelog specifically mentions a “LaTeX block“, though. Was it a mistake?
Thanks again.
Forum: Plugins
In reply to: [VRTs - Visual Regression Tests] A couple of issues with the testsThanks, @steffenbew.
Thanks for the detailed response.
I’m looking forward to the AI feature.
I wonder if AI in the future could determine whether a change is meaningful, perhaps by gradually learning through false-positive flagging.
Thanks again for an essential plugin.
Forum: Plugins
In reply to: [WP Activity Log] Public API for logging custom eventsI will check it out. Thanks @lucianwpwhite!
@litetim I schedule it:
add_action('admin_init', 'h4l_schedule_crawl_sitemap');
function h4l_schedule_crawl_sitemap($reschedule = false) {
$hook = 'h4l_crawl_sitemap';
$is_staging = wp_get_environment_type() === 'staging';
if (wp_next_scheduled($hook) && ($is_staging || $reschedule)) {
$timestamp = wp_next_scheduled($hook);
wp_unschedule_event($timestamp, $hook);
}
if (!wp_next_scheduled($hook) && !$is_staging) {
wp_schedule_event(time() + (5 * MINUTE_IN_SECONDS), 'every_eight_hours', $hook);
}
}See here:
Scheduling WP Cron Events – Plugin Handbook | Developer.ww.wp.xz.cn
This is the server command:
cd /home/asafdevc/hobbies4.life && /usr/local/bin/php /home/asafdevc/hobbies4.life/wp-cron.php@litetim I use cron.
But I’ve checked and, on both versions, 7.5 and 7.6, this
ifblock is executed when using cron.Thanks, @litetim.
I’ve done some more debugging and noticed this difference in
purge.cls.phpinside the_add()function.7.5:
if (defined('LITESPEED_CLI')) {
// Can't send, already has output, need to save and wait for next run
self::update_option($purge2 ? self::DB_QUEUE2 : self::DB_QUEUE, $curr_built);
self::debug('CLI request, queue stored: ' . $curr_built);
}7.6:
if (defined('LITESPEED_CLI')) {
self::debug('CLI request, queue stored: ' . $curr_built);
}7.6 is missing this line:
self::update_option($purge2 ? self::DB_QUEUE2 : self::DB_QUEUE, $curr_built);I added the missing line to 7.6 and things are working properly.
This missing line seems to be the issue.
What do you think?
@litetim, unfortunately the issue isn’t resolved.
First, I noticed I have the same issue on another website with a similar setup.
Then, I got a notification from Wordfence saying the
purge.cls.phpon the original website we discussed about doesn’t match the one in the WordPress repository for this version.I completely removed the plugin and reinstalled the it, and the issue is back.
It seems that the only reason it worked is that somehow the
purge.cls.phpfile was outdated (maybe something I’ve done while debugging).In GitHub, I see a lot of changes were made to this file in the latest update—maybe the issue lies there.
@litetim, it seems like it. I’m a bit confused. I don’t really know what fixed it. We can mark it as resolved for now.