Hello, we were adapting the KeywordCloudPlugin and the function _cacheMiss does not working anymore. Can someone help us to identify something has changed of OJS 3.1 in relation to 3.2 version?
Here the original code that works fine on version 3.1:
<?php
/**
* @file plugins/blocks/KeywordCloud/KeywordCloudBlockPlugin.inc.php
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class KeywordCloudBlockPlugin
* @ingroup plugins_blocks_Keywordcloud
*
* @brief Class for KeywordCloud block plugin
*/
define('KEYWORD_BLOCK_MAX_ITEMS', 50);
define('KEYWORD_BLOCK_CACHE_DAYS', 2);
define('ONE_DAY_SECONDS', 60 * 60 * 24);
define('TWO_DAYS_SECONDS',ONE_DAY_SECONDS * KEYWORD_BLOCK_CACHE_DAYS);
This file has been truncated. show original
And that is the code with our modifies, in this case, the funciont _cacheMiss doesn’t works:
<?php
/**
* @file plugins/blocks/KeywordCloud/KeywordCloudBlockPlugin.inc.php
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class KeywordCloudBlockPlugin
* @ingroup plugins_blocks_Keywordcloud
*
* @brief Class for KeywordCloud block plugin
*/
define('KEYWORD_BLOCK_MAX_ITEMS', 100);
define('KEYWORD_BLOCK_CACHE_DAYS', 2);
import('lib.pkp.classes.plugins.BlockPlugin');
This file has been truncated. show original
Thanks!