Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter cplummer4

    (@cplummer4)

    My apologies, I think it was not working to this setting:

    “Only once when saving a post (default, better performance)”

    I noticed that when an editor made a change to the post that it refreshed the og:image tags.

    Thread Starter cplummer4

    (@cplummer4)

    And to be clear, I think allowing this to be set per post is still the way to go instead of a global override. Some editors might want to customize their post. Its just the default values I’d like to fix…

    Yes that did work. I re-enabled APC, and for the profiler I unchecked the option “Attempt to disable opcode optimizers (recommended)” under Advanced Settings. I did not get any strangely skewed pie chart, however the chart results were slightly different.

    Question, when P3 profiler is first activated, does it automatically start a scan if one does not already exist? If so, I would turn off that feature and let the user trigger when to scan. I say this because my first several experiences with this plugin was that after activating the plugin my site immediately went down.

    I would also recommend only install this plugin on a non-production server.

    FYI, I tried to get this plugin working on three separate occasions. I’d have to immediately deactivate it due to 500 internal server errors. I finally got around to cloning my production machine to another server. After much tinkering I was able to figure out that the www pool for php-fpm was crashing:

    tail -f /var/log/php-fpm.log
    WARNING: [pool www] child 2895 exited with code 1 after 34.515471 seconds from start

    My solution was to disable APC during profiling:
    vi /etc/php.d/apc.ini
    apc.enabled=0
    service php-fpm restart

    After that I was able to run the profiler without it crashing, albeit slower. However I was able to obtain accurate results which I then used to make changes on my production server that I had cloned.

    Thread Starter cplummer4

    (@cplummer4)

    I was able to fix this, but I only needed to filter by titles, and didn’t care about descriptions.

    Edit hungryfeed.php:

    // if any filters were specified, then only show the feed items that contain the filter text
    		if (count($filters))
    		{
    			$match = false;
    			$item_will_be_included = false;
    
    			foreach($filters as $f)
    			{
    				// Filter on titles only
    				// if (stripos($description,$f) !== false || stripos($title,$f) !== false)
    				if (stripos($title,$f) !== false)
    				{
    					$match = true;
    					break;
    				}
    			}
    
    			if (!$match)
    			{
    				// didn't match the filter, exit the foreach loop
    				continue;
    			}
    		}
Viewing 5 replies - 1 through 5 (of 5 total)