PHP_INT_MAX prevents hooks from being triggered
-
Hi,
I am using this plugin on almost all of my websites. Last day I tried setting up a new website on a new server. I noticed it was not auto purging the cache. I tried tracing the bug and I foundadd_action('transition_post_status', array($this, 'purgeCacheOnPostStatusChange'), PHP_INT_MAX, 3);
this and other similar hooks were not getting triggered.PHP_INT_MAX
is what causing the issue here. When I tried with a smaller number, they started getting triggered. EvenPHP_INT_MAX - 1
is working.
I am not fully sure if this problem is in wordpress core, your plugin or in my PHP/server settings. But I thought sharing it here might help someone.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP_INT_MAX prevents hooks from being triggered’ is closed to new replies.